git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170321
91177308-0d34-0410-b5e6-
96231b3b80d8
const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS());
assert(SRE && CE && "Binary expression must be sym+const.");
Offset = CE->getValue();
- } else if (!(SRE = dyn_cast<MCSymbolRefExpr>(Expr))) {
- assert(false && "Unexpected MCExpr type.");
+ } else {
+ SRE = dyn_cast<MCSymbolRefExpr>(Expr);
+ assert(SRE && "Unexpected MCExpr type.");
}
assert(SRE->getKind() == MCSymbolRefExpr::VK_None);