[clang] [llvm] [DirectX][DXIL] Set DXIL Version in DXIL target triple based on shader model version (PR #90809)

S. Bharadwaj Yadavalli via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 11:06:14 PDT 2024


================
@@ -630,7 +630,7 @@ extern "C" int optMain(
     }
   }
 
-  Triple ModuleTriple(M->getTargetTriple());
+  Triple ModuleTriple(Triple::normalize(M->getTargetTriple()));
----------------
bharadwajy wrote:

> Similarly to my concern about updating `createTargetMachineForTriple`, I don't think opt should messing with the triple it's given.

Deleted call to `normalize()`.

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


More information about the cfe-commits mailing list