[llvm] TargetLibraryInfo: Delete default TargetLibraryInfoImpl constructor (PR #145826)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 26 00:12:32 PDT 2025


================
@@ -147,7 +151,7 @@ struct ForcePassLinking {
     llvm::Function::Create(nullptr, llvm::GlobalValue::ExternalLinkage)
         ->viewCFGOnly();
     llvm::RGPassManager RGM;
-    llvm::TargetLibraryInfoImpl TLII;
+    llvm::TargetLibraryInfoImpl TLII((llvm::Triple()));
----------------
arsenm wrote:

```
warning: parentheses were disambiguated as a function declaration [-Wvexing-parse]
LinkAllPasses.h:154:38: note: add a pair of parentheses to declare a variable
error: no matching constructor for initialization of 'llvm::TargetLibraryInfo'
```

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


More information about the llvm-commits mailing list