aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-08-29 23:18:48 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-08-29 23:18:48 +0000
commite3d7f93f9f90611f886deb045b5aaf4ca9e99bb2 (patch)
treefd9bac1765754f88ba4d2b3a59a36be852a5614a
parent983b81d6041282ffb6e1dd65b2edb2def76f82fc (diff)
downloadexternal_llvm-e3d7f93f9f90611f886deb045b5aaf4ca9e99bb2.zip
external_llvm-e3d7f93f9f90611f886deb045b5aaf4ca9e99bb2.tar.gz
external_llvm-e3d7f93f9f90611f886deb045b5aaf4ca9e99bb2.tar.bz2
Fix use of declaration inside case block
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41584 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 8baef4b..c7803ca 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -741,7 +741,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
else
Result = DAG.getConstant(0, TLI.getPointerTy());
break;
- case ISD::FRAME_TO_ARGS_OFFSET:
+ case ISD::FRAME_TO_ARGS_OFFSET: {
MVT::ValueType VT = Node->getValueType(0);
switch (TLI.getOperationAction(Node->getOpcode(), VT)) {
default: assert(0 && "This action is not supported yet!");
@@ -753,6 +753,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
Result = DAG.getConstant(0, VT);
break;
}
+ }
break;
case ISD::EXCEPTIONADDR: {
Tmp1 = LegalizeOp(Node->getOperand(0));