forked from OSchip/llvm-project
[clang][Interp][NFC] InterpFrame: localBlock() can be const
This commit is contained in:
parent
9b087a70e6
commit
f756ddba17
|
@ -123,7 +123,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a pointer to a local's block.
|
/// Returns a pointer to a local's block.
|
||||||
void *localBlock(unsigned Offset) {
|
void *localBlock(unsigned Offset) const {
|
||||||
return Locals.get() + Offset - sizeof(Block);
|
return Locals.get() + Offset - sizeof(Block);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue