aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-01-05 20:47:37 +0000
committerNate Begeman <natebegeman@mac.com>2008-01-05 20:47:37 +0000
commit11f2e1dd26a13838a9f9e3b0b288969acacdb763 (patch)
tree490c39e1ca37bed724963dc8219d2994a6f89ade /lib
parentcd8a384d01180db29d126f166ab386b8040426f9 (diff)
downloadexternal_llvm-11f2e1dd26a13838a9f9e3b0b288969acacdb763.zip
external_llvm-11f2e1dd26a13838a9f9e3b0b288969acacdb763.tar.gz
external_llvm-11f2e1dd26a13838a9f9e3b0b288969acacdb763.tar.bz2
If custom lowering of insert element fails, the result Val will be 0.
Don't overwrite a variable used by the fallthrough code path in this case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45630 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 688e4f9..f1cd2ca 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1243,9 +1243,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
case TargetLowering::Legal:
break;
case TargetLowering::Custom:
- Tmp3 = TLI.LowerOperation(Result, DAG);
- if (Tmp3.Val) {
- Result = Tmp3;
+ Tmp4 = TLI.LowerOperation(Result, DAG);
+ if (Tmp4.Val) {
+ Result = Tmp4;
break;
}
// FALLTHROUGH