mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Simplify assertion in XCoreInstPrinter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170321 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4d40a04f0
commit
2694948966
@ -53,8 +53,9 @@ static void printExpr(const MCExpr *Expr, raw_ostream &OS) {
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user