mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-21 11:10:12 +00:00
Fix a typo and silence unused variable warnings in -Asserts build.
llvm-svn: 116685
This commit is contained in:
parent
d99f79f92b
commit
e8c2e82a84
@ -472,10 +472,8 @@ void ELFObjectWriterImpl::WriteSymbol(MCDataFragment *F, ELFSymbolData &MSD,
|
||||
const MCBinaryExpr *BE = static_cast<const MCBinaryExpr *>(ESize);
|
||||
|
||||
if (BE->EvaluateAsRelocatable(Res, &Layout)) {
|
||||
const llvm::MCSymbolRefExpr *A = Res.getSymA();
|
||||
const llvm::MCSymbolRefExpr *B = Res.getSymA();
|
||||
assert(!A || !A->getSymbol().isDefined());
|
||||
assert(!B || !B->getSymbol().isDefined());
|
||||
assert(!Res.getSymA() || !Res.getSymA()->getSymbol().isDefined());
|
||||
assert(!Res.getSymB() || !Res.getSymB()->getSymbol().isDefined());
|
||||
Size = Res.getConstant();
|
||||
}
|
||||
} else if (ESize->getKind() == MCExpr::Constant) {
|
||||
|
Loading…
Reference in New Issue
Block a user