mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +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);
|
const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(LHS);
|
||||||
(void)SRE;
|
(void)SRE;
|
||||||
const MCConstantExpr *CE = cast<MCConstantExpr>(RHS);
|
assert(isInt<34>(cast<MCConstantExpr>(RHS)->getValue()) &&
|
||||||
(void)CE;
|
"Value must fit in 34 bits.");
|
||||||
assert(isInt<34>(CE->getValue()) && "Value must fit in 34 bits.");
|
|
||||||
|
|
||||||
// Currently these are the only valid PCRelative Relocations.
|
// Currently these are the only valid PCRelative Relocations.
|
||||||
assert((SRE->getKind() == MCSymbolRefExpr::VK_PCREL ||
|
assert((SRE->getKind() == MCSymbolRefExpr::VK_PCREL ||
|
||||||
|
Loading…
Reference in New Issue
Block a user