We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637840d commit 1277c9aCopy full SHA for 1277c9a
clang/lib/AST/ByteCode/Program.cpp
@@ -27,7 +27,7 @@ unsigned Program::getOrCreateNativePointer(const void *Ptr) {
27
return It->second;
28
}
29
30
-const void *Program::getNativePointer(unsigned Idx) {
+const void *Program::getNativePointer(unsigned Idx) const {
31
return NativePointers[Idx];
32
33
clang/lib/AST/ByteCode/Program.h
@@ -58,7 +58,7 @@ class Program final {
58
unsigned getOrCreateNativePointer(const void *Ptr);
59
60
/// Returns the value of a marshalled native pointer.
61
- const void *getNativePointer(unsigned Idx);
+ const void *getNativePointer(unsigned Idx) const;
62
63
/// Emits a string literal among global data.
64
unsigned createGlobalString(const StringLiteral *S,
0 commit comments