From 660bac6a57dfd11db30d782050b2649b900728c4 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 19 Nov 2014 21:16:11 +0000 Subject: [PATCH] Try to fix MSVS build after r222384. No intended behavior change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222386 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SimplifyCFG.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index aa3baf07ab3..8d99840d2f1 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -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(I)) && - (C = GetConstantInt(I->getOperand(1), DL)))) { + if (!((ICI = dyn_cast(I)) && + (C = GetConstantInt(I->getOperand(1), DL)))) { return nullptr; } @@ -472,7 +472,7 @@ GatherConstantCompares(Value *V, SmallVectorImpl &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(V)) { -- 2.34.1