[clang] 2f0700a - [clang][Interp] Add a missing template keyword

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 5 03:28:30 PDT 2024


Author: Timm Bäder
Date: 2024-07-05T12:28:17+02:00
New Revision: 2f0700a84311d1a8b0fc12499fe9480ccbd188e9

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

LOG: [clang][Interp] Add a missing template keyword

This broke a buildbot:
https://lab.llvm.org/buildbot/#/builders/190/builds/1326

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Compiler.cpp b/clang/lib/AST/Interp/Compiler.cpp
index 2ada68f6bc756..3d9a0358c5487 100644
--- a/clang/lib/AST/Interp/Compiler.cpp
+++ b/clang/lib/AST/Interp/Compiler.cpp
@@ -3995,7 +3995,7 @@ bool Compiler<Emitter>::VisitCXXThisExpr(const CXXThisExpr *E) {
     }
 
     for (unsigned I = StartIndex, N = InitStack.size(); I != N; ++I) {
-      if (!InitStack[I].emit<Emitter>(this, E))
+      if (!InitStack[I].template emit<Emitter>(this, E))
         return false;
     }
     return true;


        


More information about the cfe-commits mailing list