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 5b9d68b commit 148e138Copy full SHA for 148e138
flang/lib/Frontend/FrontendActions.cpp
@@ -1389,10 +1389,10 @@ void CodeGenAction::executeAction() {
1389
// given on the command-line).
1390
llvm::TargetMachine &targetMachine = ci.getTargetMachine();
1391
1392
- const std::string &theTriple = targetMachine.getTargetTriple().str();
+ const llvm::Triple &theTriple = targetMachine.getTargetTriple();
1393
1394
if (llvmModule->getTargetTriple() != theTriple) {
1395
- diags.Report(clang::diag::warn_fe_override_module) << theTriple;
+ diags.Report(clang::diag::warn_fe_override_module) << theTriple.str();
1396
}
1397
1398
// Always set the triple and data layout, to make sure they match and are set.
0 commit comments