Skip to content

Commit 7b88e75

Browse files
authored
[clang][bytecode][NFC] Make CheckVolatile static (#113785)
1 parent d5b42db commit 7b88e75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/ByteCode/Interp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,8 @@ bool CheckMutable(InterpState &S, CodePtr OpPC, const Pointer &Ptr) {
513513
return false;
514514
}
515515

516-
bool CheckVolatile(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
517-
AccessKinds AK) {
516+
static bool CheckVolatile(InterpState &S, CodePtr OpPC, const Pointer &Ptr,
517+
AccessKinds AK) {
518518
assert(Ptr.isLive());
519519

520520
// FIXME: This check here might be kinda expensive. Maybe it would be better

0 commit comments

Comments
 (0)