mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01: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. llvm-svn: 45630
This commit is contained in:
parent
9f51583a6a
commit
a6e9de35ae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user