From f756ddba17c9f0f0ee49b45dd4b15b487aff9b67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 10 Sep 2022 09:42:02 +0200 Subject: [PATCH] [clang][Interp][NFC] InterpFrame: localBlock() can be const --- clang/lib/AST/Interp/InterpFrame.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }