summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit2bdec2a5eec75d6f05657e34eb7d95d8ebcdfdec (patch)
treed8a98f0a4073d832fd0104d6bd07082d37238392 /llvm/lib
parent6678284a737b7a09e19e70fe8465c516b47537c9 (diff)
downloadbcm5719-llvm-2bdec2a5eec75d6f05657e34eb7d95d8ebcdfdec.tar.gz
bcm5719-llvm-2bdec2a5eec75d6f05657e34eb7d95d8ebcdfdec.zip
Fix use of declaration inside case block
llvm-svn: 41584
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 8baef4b1d45..c7803caa839 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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));
OpenPOWER on IntegriCloud