[clang] ca87671 - [clang][Interp][NFC] Make local pointer const

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 17 10:08:16 PDT 2024


Author: Timm Bäder
Date: 2024-03-17T18:07:51+01:00
New Revision: ca876711aee31e5ec7f4f6f0210de664c8ec7ce4

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

LOG: [clang][Interp][NFC] Make local pointer const

Added: 
    

Modified: 
    clang/lib/AST/Interp/InterpBuiltin.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/InterpBuiltin.cpp b/clang/lib/AST/Interp/InterpBuiltin.cpp
index b5bd4e99ba84b1..45bac41ff7782a 100644
--- a/clang/lib/AST/Interp/InterpBuiltin.cpp
+++ b/clang/lib/AST/Interp/InterpBuiltin.cpp
@@ -917,7 +917,7 @@ static bool interp__builtin_complex(InterpState &S, CodePtr OpPC,
 
 bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const Function *F,
                       const CallExpr *Call) {
-  InterpFrame *Frame = S.Current;
+  const InterpFrame *Frame = S.Current;
   APValue Dummy;
 
   std::optional<PrimType> ReturnT = S.getContext().classify(Call);


        


More information about the cfe-commits mailing list