diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-16 03:25:55 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-02-16 03:25:55 +0000 |
commit | 908159b46ae118d36fccbc1d5145dcedfc3d4185 (patch) | |
tree | 2bcfa35cdee3a066ce28656022bc1e7b506c6e5e /lib/MC/MCAssembler.cpp | |
parent | 169e1552e748348b033fb6817df4bffc345e5583 (diff) |
Gas is very inconsistent about when a relaxation/relocation is needed. Do
the right thing and stop trying to copy it. Fixes PR8944.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125648 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAssembler.cpp')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 587068aee5..9992646042 100644 --- a/lib/MC/MCAssembler.cpp +++ b/lib/MC/MCAssembler.cpp @@ -229,8 +229,10 @@ bool MCAssembler::EvaluateFixup(const MCAsmLayout &Layout, } else if (!Target.getSymA()) { IsResolved = false; } else { - const MCSymbol &SA = Target.getSymA()->getSymbol(); - if (SA.AliasedSymbol().isUndefined()) { + const MCSymbolRefExpr *A = Target.getSymA(); + const MCSymbol &SA = A->getSymbol(); + if (A->getKind() != MCSymbolRefExpr::VK_None || + SA.AliasedSymbol().isUndefined()) { IsResolved = false; } else { const MCSymbolData &DataA = getSymbolData(SA); |