diff --git a/clang/lib/AST/Interp/InterpFrame.h b/clang/lib/AST/Interp/InterpFrame.h index 3769c9a5f5f1..ca9803d48dd1 100644 --- a/clang/lib/AST/Interp/InterpFrame.h +++ b/clang/lib/AST/Interp/InterpFrame.h @@ -123,7 +123,7 @@ private: } /// Returns a pointer to a local's block. - void *localBlock(unsigned Offset) { + void *localBlock(unsigned Offset) const { return Locals.get() + Offset - sizeof(Block); }