[clang][Interp][NFC] InterpFrame: localBlock() can be const
authorTimm Bäder <tbaeder@redhat.com>
Sat, 10 Sep 2022 07:42:02 +0000 (09:42 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Tue, 13 Sep 2022 08:41:18 +0000 (10:41 +0200)
clang/lib/AST/Interp/InterpFrame.h

index 3769c9a..ca9803d 100644 (file)
@@ -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);
   }