aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2007-03-20 20:43:18 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2007-03-20 20:43:18 +0000
commitc01a53007a4f4f9a601f1cc83ff4e2935405b905 (patch)
treef90b131dc838cd2fcb5b44f5ddca84f048c3a909
parent09dfd8e19dc4bb0e53966a0531880d42182a1f9f (diff)
downloadexternal_llvm-c01a53007a4f4f9a601f1cc83ff4e2935405b905.tar.gz
external_llvm-c01a53007a4f4f9a601f1cc83ff4e2935405b905.tar.bz2
external_llvm-c01a53007a4f4f9a601f1cc83ff4e2935405b905.zip
Fix some VC++ warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35224 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/ScheduleDAG.cpp1
-rw-r--r--lib/Transforms/Scalar/LoopStrengthReduce.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
index 262549a2e9..06544bfaf6 100644
--- a/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
@@ -394,6 +394,7 @@ static const TargetRegisterClass *getPhysicalRegisterRegClass(
if ((*I)->hasType(VT) && (*I)->contains(reg))
return *I;
assert(false && "Couldn't find the register class");
+ return 0;
}
/// EmitNode - Generate machine code for an node and needed dependencies.
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index bd74902c53..4353134093 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -44,7 +44,7 @@ STATISTIC(NumVariable, "Number of PHIs with variable strides");
namespace {
- class BasedUser;
+ struct BasedUser;
/// IVStrideUse - Keep track of one use of a strided induction variable, where
/// the stride is stored externally. The Offset member keeps track of the