Skip to content

Commit 1277c9a

Browse files
tbaederrGeneraluseAI
authored andcommitted
[clang][bytecode][NFC] Make Program::getNativePointer() const (llvm#169502)
1 parent 637840d commit 1277c9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/AST/ByteCode/Program.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ unsigned Program::getOrCreateNativePointer(const void *Ptr) {
2727
return It->second;
2828
}
2929

30-
const void *Program::getNativePointer(unsigned Idx) {
30+
const void *Program::getNativePointer(unsigned Idx) const {
3131
return NativePointers[Idx];
3232
}
3333

clang/lib/AST/ByteCode/Program.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Program final {
5858
unsigned getOrCreateNativePointer(const void *Ptr);
5959

6060
/// Returns the value of a marshalled native pointer.
61-
const void *getNativePointer(unsigned Idx);
61+
const void *getNativePointer(unsigned Idx) const;
6262

6363
/// Emits a string literal among global data.
6464
unsigned createGlobalString(const StringLiteral *S,

0 commit comments

Comments
 (0)