[llvm] [DirectX] Fix DXIL part header version encoding (PR #91506)

S. Bharadwaj Yadavalli via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 13:15:52 PDT 2024


================
@@ -537,9 +537,7 @@ static int compileModule(char **argv, LLVMContext &Context) {
       // If we are supposed to override the target triple, do so now.
       std::string IRTargetTriple = DataLayoutTargetTriple.str();
       if (!TargetTriple.empty())
-        IRTargetTriple = TargetTriple;
-      if (!IRTargetTriple.empty())
-        IRTargetTriple = Triple::normalize(IRTargetTriple);
+        IRTargetTriple = Triple::normalize(TargetTriple);
----------------
bharadwajy wrote:

Is this change still needed? Is it possible to avoid making changes to this file?

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


More information about the llvm-commits mailing list