summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2015-08-31 17:44:53 +0000
committerVedant Kumar <vsk@apple.com>2015-08-31 17:44:53 +0000
commit86dbd923347c5946c7cee8d5e60387c39e32c758 (patch)
tree4d065f70ea5c35eb092751ebcc31f351be3254e7 /llvm/lib/Bitcode
parent2d69f9608e53a39d5b78a798cbf668e0b9867fe0 (diff)
downloadbcm5719-llvm-86dbd923347c5946c7cee8d5e60387c39e32c758.tar.gz
bcm5719-llvm-86dbd923347c5946c7cee8d5e60387c39e32c758.zip
[MC/AsmParser] Avoid setting MCSymbol.IsUsed in some cases
Avoid marking some MCSymbols as used in MC/AsmParser.cpp when no uses exist. This fixes a bug in parseAssignmentExpression() which inadvertently sets IsUsed, thereby triggering: "invalid re-assignment of non-absolute variable" on otherwise valid code. No other functionality change intended. The original version of this patch touched many calls to MCSymbol accessors. On rafael's advice, I have stripped this patch down a bit. As a follow-up, I intend to find the call sites which intentionally set IsUsed and force them to do so explicitly. Differential Revision: http://reviews.llvm.org/D12347 llvm-svn: 246457
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud