mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
add an assert for safety; NFC
llvm-svn: 265969
This commit is contained in:
parent
3172549776
commit
86526c47b6
@ -61,6 +61,8 @@ static bool canEvaluateShiftedShift(unsigned FirstShiftAmt,
|
||||
bool IsFirstShiftLeft,
|
||||
Instruction *SecondShift, InstCombiner &IC,
|
||||
Instruction *CxtI) {
|
||||
assert(SecondShift->isLogicalShift() && "Unexpected instruction type");
|
||||
|
||||
// We need constant shifts.
|
||||
auto *SecondShiftConst = dyn_cast<ConstantInt>(SecondShift->getOperand(1));
|
||||
if (!SecondShiftConst)
|
||||
|
Loading…
Reference in New Issue
Block a user