summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-07-19 01:38:38 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-07-19 01:38:38 +0000
commitac0ca9241aa6137c92d814383f5a811c80bc01c1 (patch)
treef11c85b0709db64acbc612dae4d912b7fa182047 /llvm/lib/CodeGen
parentacd56a090230d0fefd2d61e667e1ce2bf45abc85 (diff)
downloadbcm5719-llvm-ac0ca9241aa6137c92d814383f5a811c80bc01c1.tar.gz
bcm5719-llvm-ac0ca9241aa6137c92d814383f5a811c80bc01c1.zip
Fix some minor MSVC compiler warnings.
llvm-svn: 76356
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp4
-rw-r--r--llvm/lib/CodeGen/Spiller.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 85ade6fc715..87ca13e2860 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3905,11 +3905,11 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, SDVTList VTList,
if (VTList.NumVTs == 1)
return getNode(Opcode, DL, VTList.VTs[0], Ops, NumOps);
+#if 0
switch (Opcode) {
// FIXME: figure out how to safely handle things like
// int foo(int x) { return 1 << (x & 255); }
// int bar() { return foo(256); }
-#if 0
case ISD::SRA_PARTS:
case ISD::SRL_PARTS:
case ISD::SHL_PARTS:
@@ -3925,8 +3925,8 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL, SDVTList VTList,
return getNode(Opcode, DL, VT, N1, N2, N3.getOperand(0));
}
break;
-#endif
}
+#endif
// Memoize the node unless it returns a flag.
SDNode *N;
diff --git a/llvm/lib/CodeGen/Spiller.h b/llvm/lib/CodeGen/Spiller.h
index f339336f61c..9c3900df0b5 100644
--- a/llvm/lib/CodeGen/Spiller.h
+++ b/llvm/lib/CodeGen/Spiller.h
@@ -14,7 +14,7 @@
namespace llvm {
- struct LiveInterval;
+ class LiveInterval;
class LiveIntervals;
class LiveStacks;
class MachineFunction;
OpenPOWER on IntegriCloud