projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54b62f3
)
If custom lowering of insert element fails, the result Val will be 0.
author
Nate Begeman
<natebegeman@mac.com>
Sat, 5 Jan 2008 20:47:37 +0000
(20:47 +0000)
committer
Nate Begeman
<natebegeman@mac.com>
Sat, 5 Jan 2008 20:47:37 +0000
(20:47 +0000)
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
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 688e4f9fea07c5fca399b751c8eaeea62f496b0d..f1cd2cab249f9cf8d2b81fa71adcc1b195a3ff25 100644
(file)
--- 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:
case TargetLowering::Legal:
break;
case TargetLowering::Custom:
- Tmp
3
= TLI.LowerOperation(Result, DAG);
- if (Tmp
3
.Val) {
- Result = Tmp
3
;
+ Tmp
4
= TLI.LowerOperation(Result, DAG);
+ if (Tmp
4
.Val) {
+ Result = Tmp
4
;
break;
}
// FALLTHROUGH
break;
}
// FALLTHROUGH