[clang] ae667f0 - [clang][Interp][NFC] Take a const InterpFrame* in InterpBuiltin.cpp

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 26 01:06:48 PDT 2023


Author: Timm Bäder
Date: 2023-07-26T10:06:26+02:00
New Revision: ae667f03d369cab8f32f28c3d765695ed4c1972b

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

LOG: [clang][Interp][NFC] Take a const InterpFrame* in InterpBuiltin.cpp

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 0d0859a4cd284b..dbefcbf961dd28 100644
--- a/clang/lib/AST/Interp/InterpBuiltin.cpp
+++ b/clang/lib/AST/Interp/InterpBuiltin.cpp
@@ -13,13 +13,13 @@
 namespace clang {
 namespace interp {
 
-template <typename T> T getParam(InterpFrame *Frame, unsigned Index) {
+template <typename T> T getParam(const InterpFrame *Frame, unsigned Index) {
   unsigned Offset = Frame->getFunction()->getParamOffset(Index);
   return Frame->getParam<T>(Offset);
 }
 
 static bool interp__builtin_strcmp(InterpState &S, CodePtr OpPC,
-                                   InterpFrame *Frame) {
+                                   const InterpFrame *Frame) {
   const Pointer &A = getParam<Pointer>(Frame, 0);
   const Pointer &B = getParam<Pointer>(Frame, 1);
 


        


More information about the cfe-commits mailing list