mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[Target/PPC] Fold inside an assertion.
Pointed out by dblaikie.
This commit is contained in:
parent
a46434135a
commit
9cf60f1a4c
@ -242,9 +242,8 @@ PPCMCCodeEmitter::getMemRI34PCRelEncoding(const MCInst &MI, unsigned OpNo,
|
||||
|
||||
const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(LHS);
|
||||
(void)SRE;
|
||||
const MCConstantExpr *CE = cast<MCConstantExpr>(RHS);
|
||||
(void)CE;
|
||||
assert(isInt<34>(CE->getValue()) && "Value must fit in 34 bits.");
|
||||
assert(isInt<34>(cast<MCConstantExpr>(RHS)->getValue()) &&
|
||||
"Value must fit in 34 bits.");
|
||||
|
||||
// Currently these are the only valid PCRelative Relocations.
|
||||
assert((SRE->getKind() == MCSymbolRefExpr::VK_PCREL ||
|
||||
|
Loading…
Reference in New Issue
Block a user