We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c04c073 commit ade02d7Copy full SHA for ade02d7
llvm/tools/llc/llc.cpp
@@ -538,7 +538,9 @@ static int compileModule(char **argv, LLVMContext &Context) {
538
std::string IRTargetTriple = DataLayoutTargetTriple.str();
539
if (!TargetTriple.empty())
540
IRTargetTriple = TargetTriple;
541
- TheTriple = Triple(Triple::normalize(IRTargetTriple));
+ if (!IRTargetTriple.empty())
542
+ IRTargetTriple = Triple::normalize(IRTargetTriple);
543
+ TheTriple = Triple(IRTargetTriple);
544
if (TheTriple.getTriple().empty())
545
TheTriple.setTriple(sys::getDefaultTargetTriple());
546
0 commit comments