[clang] [clang] Allow delayed function instantiation at TU end if initial instantiation fails (PR #117167)

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 21 06:51:03 PST 2024


================
@@ -1138,7 +1138,7 @@ void Sema::ActOnEndOfTranslationUnitFragment(TUFragmentKind Kind) {
 
   {
     llvm::TimeTraceScope TimeScope("PerformPendingInstantiations");
-    PerformPendingInstantiations();
+    PerformPendingInstantiations(false, true);
----------------
tbaederr wrote:

```suggestion
    PerformPendingInstantiations(/*LocalOnly=*/false, /*AtEndOfTU=*/true);
```

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


More information about the cfe-commits mailing list