summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2014-11-19 21:16:11 +0000
committerNico Weber <nicolasweber@gmx.de>2014-11-19 21:16:11 +0000
commit06839a536f39170f2ff6793ccbfa6ebb3468efe5 (patch)
tree110a037e5c06e79a8676fdce230a78cbc766dad1 /llvm/lib/Transforms
parent10738229c990e0c3060317c855641424baf5cb90 (diff)
downloadbcm5719-llvm-06839a536f39170f2ff6793ccbfa6ebb3468efe5.tar.gz
bcm5719-llvm-06839a536f39170f2ff6793ccbfa6ebb3468efe5.zip
Try to fix MSVS build after r222384. No intended behavior change.
llvm-svn: 222386
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index aa3baf07ab3..8d99840d2f1 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/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<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)) {
OpenPOWER on IntegriCloud