mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Fix PR5112, a miscompilation on gcc-4.0.3. Patch by Collin Winter!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7963e15951
commit
6cf4963cdc
@ -390,7 +390,10 @@ void Triple::setOS(OSType Kind) {
|
||||
}
|
||||
|
||||
void Triple::setArchName(const StringRef &Str) {
|
||||
setTriple(Str + "-" + getVendorName() + "-" + getOSAndEnvironmentName());
|
||||
// Work around a miscompilation bug in gcc 4.0.3.
|
||||
Twine a = getVendorName() + "-" + getOSAndEnvironmentName();
|
||||
Twine b = Str + "-" + a;
|
||||
setTriple(b);
|
||||
}
|
||||
|
||||
void Triple::setVendorName(const StringRef &Str) {
|
||||
|
Loading…
Reference in New Issue
Block a user