Skip to content

Commit fb68827

Browse files
authored
Triple: Remove workaround for gcc 4.0.3 (#145660)
Use the Twine version instead of manually building a string
1 parent c9910d5 commit fb68827

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

llvm/lib/TargetParser/Triple.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,14 +1633,7 @@ void Triple::setObjectFormat(ObjectFormatType Kind) {
16331633
}
16341634

16351635
void Triple::setArchName(StringRef Str) {
1636-
// Work around a miscompilation bug for Twines in gcc 4.0.3.
1637-
SmallString<64> Triple;
1638-
Triple += Str;
1639-
Triple += "-";
1640-
Triple += getVendorName();
1641-
Triple += "-";
1642-
Triple += getOSAndEnvironmentName();
1643-
setTriple(Triple);
1636+
setTriple(Str + "-" + getVendorName() + "-" + getOSAndEnvironmentName());
16441637
}
16451638

16461639
void Triple::setVendorName(StringRef Str) {

0 commit comments

Comments
 (0)