From 1baf5c84ab8c060952f99fad655e801e948e96f6 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Tue, 20 Mar 2007 20:43:18 +0000 Subject: Fix some VC++ warnings. llvm-svn: 35224 --- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp | 1 + llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp index 262549a2e97..06544bfaf6c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp +++ b/llvm/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/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index bd74902c53c..43531340938 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/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 -- cgit v1.2.3