[clang] [clang][bytecode][NFC] Make CheckVolatile static (PR #113785)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 26 20:12:44 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/113785.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Interp.cpp (+2-2)
``````````diff
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp
index fdc4b38b8aa6dc..c8ce08aa3eef21 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -507,8 +507,8 @@ bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
return false;
}
-bool CheckVolatile(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
- AccessKinds AK) {
+static bool CheckVolatile(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
+ AccessKinds AK) {
assert(Ptr.isLive());
// FIXME: This check here might be kinda expensive. Maybe it would be better
``````````
</details>
https://github.com/llvm/llvm-project/pull/113785
More information about the cfe-commits
mailing list