[clang] Add missing declarations of explicit template instantiations. (PR #86964)

via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 28 08:46:25 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Thomas Köppe (tkoeppe)

<details>
<summary>Changes</summary>

Found with -Wundefined-func-template.

---
Full diff: https://github.com/llvm/llvm-project/pull/86964.diff


1 Files Affected:

- (modified) clang/lib/AST/Interp/ByteCodeStmtGen.h (+1) 


``````````diff
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

``````````

</details>


https://github.com/llvm/llvm-project/pull/86964


More information about the cfe-commits mailing list