forked from OSchip/llvm-project
Try to fix MSVS build after r222384. No intended behavior change.
llvm-svn: 222386
This commit is contained in:
parent
10738229c9
commit
06839a536f
|
@ -377,7 +377,7 @@ static Value* GatherConstantComparesMatch(Instruction *I,
|
||||||
// If this is an icmp against a constant, handle this as one of the cases.
|
// If this is an icmp against a constant, handle this as one of the cases.
|
||||||
ICmpInst *ICI;
|
ICmpInst *ICI;
|
||||||
ConstantInt *C;
|
ConstantInt *C;
|
||||||
if (not ((ICI = dyn_cast<ICmpInst>(I)) &&
|
if (!((ICI = dyn_cast<ICmpInst>(I)) &&
|
||||||
(C = GetConstantInt(I->getOperand(1), DL)))) {
|
(C = GetConstantInt(I->getOperand(1), DL)))) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@ -472,7 +472,7 @@ GatherConstantCompares(Value *V, SmallVectorImpl<ConstantInt*> &Vals, Value *&Ex
|
||||||
// Will hold the value used for the switch comparison
|
// Will hold the value used for the switch comparison
|
||||||
Value *CurrValue = nullptr;
|
Value *CurrValue = nullptr;
|
||||||
|
|
||||||
while(not DFT.empty()) {
|
while(!DFT.empty()) {
|
||||||
V = DFT.pop_back_val();
|
V = DFT.pop_back_val();
|
||||||
|
|
||||||
if (Instruction *I = dyn_cast<Instruction>(V)) {
|
if (Instruction *I = dyn_cast<Instruction>(V)) {
|
||||||
|
|
Loading…
Reference in New Issue