mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-05 09:09:23 +00:00
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
This commit is contained in:
parent
54b62f3af5
commit
2281a99141
@ -1243,9 +1243,9 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
|
|||||||
case TargetLowering::Legal:
|
case TargetLowering::Legal:
|
||||||
break;
|
break;
|
||||||
case TargetLowering::Custom:
|
case TargetLowering::Custom:
|
||||||
Tmp3 = TLI.LowerOperation(Result, DAG);
|
Tmp4 = TLI.LowerOperation(Result, DAG);
|
||||||
if (Tmp3.Val) {
|
if (Tmp4.Val) {
|
||||||
Result = Tmp3;
|
Result = Tmp4;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// FALLTHROUGH
|
// FALLTHROUGH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user