Skip to content

Commit 148e138

Browse files
committed
try to fix flang
1 parent 5b9d68b commit 148e138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flang/lib/Frontend/FrontendActions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,10 +1389,10 @@ void CodeGenAction::executeAction() {
13891389
// given on the command-line).
13901390
llvm::TargetMachine &targetMachine = ci.getTargetMachine();
13911391

1392-
const std::string &theTriple = targetMachine.getTargetTriple().str();
1392+
const llvm::Triple &theTriple = targetMachine.getTargetTriple();
13931393

13941394
if (llvmModule->getTargetTriple() != theTriple) {
1395-
diags.Report(clang::diag::warn_fe_override_module) << theTriple;
1395+
diags.Report(clang::diag::warn_fe_override_module) << theTriple.str();
13961396
}
13971397

13981398
// Always set the triple and data layout, to make sure they match and are set.

0 commit comments

Comments
 (0)