aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MCSymbol.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2012-03-20 21:33:21 +0000
committerJim Grosbach <grosbach@apple.com>2012-03-20 21:33:21 +0000
commit48c9533181ec7ef24e49a4f5bca9151dc6886bad (patch)
tree7e8ccd80330d37eecac5967c986746c9563e13c2 /lib/MC/MCSymbol.cpp
parent93a1a0dbda3e5e449a6b498f753130d0c240cacd (diff)
downloadexternal_llvm-48c9533181ec7ef24e49a4f5bca9151dc6886bad.zip
external_llvm-48c9533181ec7ef24e49a4f5bca9151dc6886bad.tar.gz
external_llvm-48c9533181ec7ef24e49a4f5bca9151dc6886bad.tar.bz2
Assembler should accept redefinitions of unused variable symbols.
rdar://11027851 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCSymbol.cpp')
-rw-r--r--lib/MC/MCSymbol.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/MC/MCSymbol.cpp b/lib/MC/MCSymbol.cpp
index 87b58d7..e013e77 100644
--- a/lib/MC/MCSymbol.cpp
+++ b/lib/MC/MCSymbol.cpp
@@ -54,8 +54,6 @@ const MCSymbol &MCSymbol::AliasedSymbol() const {
void MCSymbol::setVariableValue(const MCExpr *Value) {
assert(!IsUsed && "Cannot set a variable that has already been used.");
assert(Value && "Invalid variable value!");
- assert((isUndefined() || (isAbsolute() && isa<MCConstantExpr>(Value))) &&
- "Invalid redefinition!");
this->Value = Value;
// Variables should always be marked as in the same "section" as the value.