[clang] 0505c0b - [clang][Interp][NFC] Make VariableScope::getParent() const

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 3 06:36:00 PST 2023


Author: Timm Bäder
Date: 2023-02-03T15:35:42+01:00
New Revision: 0505c0b8cc998399979fcb970634dc8ee974dc7d

URL: https://github.com/llvm/llvm-project/commit/0505c0b8cc998399979fcb970634dc8ee974dc7d
DIFF: https://github.com/llvm/llvm-project/commit/0505c0b8cc998399979fcb970634dc8ee974dc7d.diff

LOG: [clang][Interp][NFC] Make VariableScope::getParent() const

Added: 
    

Modified: 
    clang/lib/AST/Interp/ByteCodeExprGen.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/ByteCodeExprGen.h b/clang/lib/AST/Interp/ByteCodeExprGen.h
index 540b9ec2f3d4..6b16b62a2e58 100644
--- a/clang/lib/AST/Interp/ByteCodeExprGen.h
+++ b/clang/lib/AST/Interp/ByteCodeExprGen.h
@@ -297,7 +297,7 @@ template <class Emitter> class VariableScope {
 
   virtual void emitDestruction() {}
 
-  VariableScope *getParent() { return Parent; }
+  VariableScope *getParent() const { return Parent; }
 
 protected:
   /// ByteCodeExprGen instance.


        


More information about the cfe-commits mailing list