https://github.com/tkoeppe created https://github.com/llvm/llvm-project/pull/86964
Found with -Wundefined-func-template. From 8576f816ce9873cf4212134d7cb9c985c4e04a53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20K=C3=B6ppe?= <tkoe...@google.com> Date: Thu, 28 Mar 2024 15:44:40 +0000 Subject: [PATCH] Add missing declarations of explicit template instantiations. Found with -Wundefined-func-template. --- clang/lib/AST/Interp/ByteCodeStmtGen.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/AST/Interp/ByteCodeStmtGen.h b/clang/lib/AST/Interp/ByteCodeStmtGen.h index ab7a591fb798ee..d7e6e5042c2740 100644 --- a/clang/lib/AST/Interp/ByteCodeStmtGen.h +++ b/clang/lib/AST/Interp/ByteCodeStmtGen.h @@ -82,6 +82,7 @@ class ByteCodeStmtGen final : public ByteCodeExprGen<Emitter> { OptLabelTy DefaultLabel; }; +extern template class ByteCodeStmtGen<ByteCodeEmitter>; extern template class ByteCodeExprGen<EvalEmitter>; } // namespace interp _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits