[clang] 7b88e75 - [clang][bytecode][NFC] Make CheckVolatile static (#113785)

via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 26 21:06:51 PDT 2024


Author: Timm Baeder
Date: 2024-10-27T05:06:47+01:00
New Revision: 7b88e7530d4329ff0c7c8638f69b39fa1e540218

URL: https://github.com/llvm/llvm-project/commit/7b88e7530d4329ff0c7c8638f69b39fa1e540218
DIFF: https://github.com/llvm/llvm-project/commit/7b88e7530d4329ff0c7c8638f69b39fa1e540218.diff

LOG: [clang][bytecode][NFC] Make CheckVolatile static (#113785)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Interp.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp
index 6d40fb03696d48..6e45cfb7e8a20c 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -513,8 +513,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


        


More information about the cfe-commits mailing list