[llvm] [DirectX] Fix DXIL part header version encoding (PR #91506)
Xiang Li via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 12:05:41 PDT 2024
================
@@ -537,7 +537,9 @@ 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 = Triple::normalize(TargetTriple);
+ IRTargetTriple = TargetTriple;
+ if (!IRTargetTriple.empty())
+ IRTargetTriple = Triple::normalize(IRTargetTriple);
----------------
python3kgae wrote:
Updated.
https://github.com/llvm/llvm-project/pull/91506
More information about the llvm-commits
mailing list