1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Try to fix MSVS build after r222384. No intended behavior change.

llvm-svn: 222386
This commit is contained in:
Nico Weber 2014-11-19 21:16:11 +00:00
parent 5b3a5199f5
commit e2c0ab0b48

View File

@ -377,8 +377,8 @@ static Value* GatherConstantComparesMatch(Instruction *I,
// If this is an icmp against a constant, handle this as one of the cases.
ICmpInst *ICI;
ConstantInt *C;
if (not ((ICI = dyn_cast<ICmpInst>(I)) &&
(C = GetConstantInt(I->getOperand(1), DL)))) {
if (!((ICI = dyn_cast<ICmpInst>(I)) &&
(C = GetConstantInt(I->getOperand(1), DL)))) {
return nullptr;
}
@ -472,7 +472,7 @@ GatherConstantCompares(Value *V, SmallVectorImpl<ConstantInt*> &Vals, Value *&Ex
// Will hold the value used for the switch comparison
Value *CurrValue = nullptr;
while(not DFT.empty()) {
while(!DFT.empty()) {
V = DFT.pop_back_val();
if (Instruction *I = dyn_cast<Instruction>(V)) {