[clang][Interp][NFC] InterpFrame: localBlock() can be const

This commit is contained in:
Timm Bäder 2022-09-10 09:42:02 +02:00
parent 9b087a70e6
commit f756ddba17
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }