summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit5743da502e684d871f2d15eaba2b01938b604ecf (patch)
tree5f0df41f03e9edf2492980406ea1adbc76785d6e /llvm/lib/CodeGen
parent647e61a42b797315bb40c71f5ec097a5e0e069ea (diff)
downloadbcm5719-llvm-5743da502e684d871f2d15eaba2b01938b604ecf.tar.gz
bcm5719-llvm-5743da502e684d871f2d15eaba2b01938b604ecf.zip
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. llvm-svn: 45630
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 688e4f9fea0..f1cd2cab249 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud