[clang] 74514e8 - [clang][Interp][NFC] Fix GetFnPtr signature

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 4 08:35:58 PDT 2023


Author: Timm Bäder
Date: 2023-07-04T17:35:28+02:00
New Revision: 74514e8713bfcd31faeb6f4cfd5e29824413e1c1

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

LOG: [clang][Interp][NFC] Fix GetFnPtr signature

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Interp.h b/clang/lib/AST/Interp/Interp.h
index dbe8b3889849cd..f179c0486bdbdb 100644
--- a/clang/lib/AST/Interp/Interp.h
+++ b/clang/lib/AST/Interp/Interp.h
@@ -1700,7 +1700,7 @@ inline bool CallPtr(InterpState &S, CodePtr OpPC) {
   return Call(S, OpPC, F);
 }
 
-inline bool GetFnPtr(InterpState &S, CodePtr &PC, const Function *Func) {
+inline bool GetFnPtr(InterpState &S, CodePtr OpPC, const Function *Func) {
   assert(Func);
   S.Stk.push<FunctionPointer>(Func);
   return true;


        


More information about the cfe-commits mailing list