[clang] Add missing declarations of explicit template instantiations. (PR #86964)
Thomas Köppe via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 28 08:45:45 PDT 2024
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?= <tkoeppe at 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
More information about the cfe-commits
mailing list