[clang] [llvm] [polly] [IR] Store Triple in Module (NFC) (PR #129868)

Yingwei Zheng via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 04:36:47 PST 2025


================
@@ -139,7 +139,7 @@ class Lint : public InstVisitor<Lint> {
 
   Lint(Module *Mod, const DataLayout *DL, AliasAnalysis *AA,
        AssumptionCache *AC, DominatorTree *DT, TargetLibraryInfo *TLI)
-      : Mod(Mod), TT(Triple::normalize(Mod->getTargetTriple())), DL(DL), AA(AA),
+      : Mod(Mod), TT(Mod->getTargetTriple().normalize()), DL(DL), AA(AA),
----------------
dtcxzyw wrote:

I don't understand the call to `normalize` here. `Triple->std::string->Triple` looks unnecessary.


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


More information about the cfe-commits mailing list