Skip to content

Commit cc2189b

Browse files
authored
Merge pull request #78791 from rjmansfield/fix-dwarf-version-legacy
[Driver] Fix -dwarf-version for Darwin toolchains in legacy driver.
2 parents 7c3eaf4 + 887be95 commit cc2189b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Driver/DarwinToolChains.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ void toolchains::Darwin::addCommonFrontendArgs(
694694
llvm::raw_string_ostream os(dwarfVersion);
695695
os << "-dwarf-version=";
696696
if (OI.DWARFVersion)
697-
os << *OI.DWARFVersion;
697+
os << std::to_string(*OI.DWARFVersion);
698698
else
699699
os << getDWARFVersionForTriple(getTriple());
700700
}

0 commit comments

Comments
 (0)