aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2006-11-05 19:31:28 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2006-11-05 19:31:28 +0000
commitd41b30def3181bce4bf87e8bde664d15663165d0 (patch)
treeb4a9c4e0797b23f78257e4cb0f74fde8ec183b2e /lib/Transforms
parentbcf81242df7983b8e86bec179c4fa04265b26db2 (diff)
downloadexternal_llvm-d41b30def3181bce4bf87e8bde664d15663165d0.zip
external_llvm-d41b30def3181bce4bf87e8bde664d15663165d0.tar.gz
external_llvm-d41b30def3181bce4bf87e8bde664d15663165d0.tar.bz2
Unbreak VC++ build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31464 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/PredicateSimplifier.cpp6
-rw-r--r--lib/Transforms/Utils/CloneFunction.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/PredicateSimplifier.cpp b/lib/Transforms/Scalar/PredicateSimplifier.cpp
index ca2762c..47f6d3d 100644
--- a/lib/Transforms/Scalar/PredicateSimplifier.cpp
+++ b/lib/Transforms/Scalar/PredicateSimplifier.cpp
@@ -428,7 +428,7 @@ namespace {
// "setlt/gt int %a, %b" NE false then %a NE %b
if (ConstantBool *CB = dyn_cast<ConstantBool>(V1)) {
- if (CB->getValue() ^ Opcode==NE)
+ if (CB->getValue() ^ (Opcode==NE))
addNotEqual(BO->getOperand(0), BO->getOperand(1));
}
break;
@@ -437,7 +437,7 @@ namespace {
// "setle/ge int %a, %b" EQ false then %a NE %b
// "setle/ge int %a, %b" NE true then %a NE %b
if (ConstantBool *CB = dyn_cast<ConstantBool>(V1)) {
- if (CB->getValue() ^ Opcode==EQ)
+ if (CB->getValue() ^ (Opcode==EQ))
addNotEqual(BO->getOperand(0), BO->getOperand(1));
}
break;
@@ -486,7 +486,7 @@ namespace {
if (ConstantBool *CB = dyn_cast<ConstantBool>(V1)) {
if (ConstantBool *A = dyn_cast<ConstantBool>(LHS)) {
addEqual(RHS, ConstantBool::get(A->getValue() ^ CB->getValue()
- ^ Opcode==NE));
+ ^ (Opcode==NE)));
}
}
else if (ConstantIntegral *CI = dyn_cast<ConstantIntegral>(V1)) {
diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp
index 30a7add..3aa7397 100644
--- a/lib/Transforms/Utils/CloneFunction.cpp
+++ b/lib/Transforms/Utils/CloneFunction.cpp
@@ -313,9 +313,9 @@ void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
assert(NameSuffix && "NameSuffix cannot be null!");
#ifndef NDEBUG
- for (Function::const_arg_iterator I = OldFunc->arg_begin(),
- E = OldFunc->arg_end(); I != E; ++I)
- assert(ValueMap.count(I) && "No mapping from source argument specified!");
+ for (Function::const_arg_iterator II = OldFunc->arg_begin(),
+ E = OldFunc->arg_end(); II != E; ++II)
+ assert(ValueMap.count(II) && "No mapping from source argument specified!");
#endif
PruningFunctionCloner PFC(NewFunc, OldFunc, ValueMap, Returns,