mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 17:25:49 +00:00
Fix insertion of SelectInsts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12760 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -136,7 +136,7 @@ static Instruction* DecomposeConstantExpr(ConstantExpr* CE,
|
|||||||
S2 = CE->getOperand (2);
|
S2 = CE->getOperand (2);
|
||||||
if (ConstantExpr* CEarg = dyn_cast<ConstantExpr> (S2))
|
if (ConstantExpr* CEarg = dyn_cast<ConstantExpr> (S2))
|
||||||
S2 = DecomposeConstantExpr (CEarg, insertBefore);
|
S2 = DecomposeConstantExpr (CEarg, insertBefore);
|
||||||
return new SelectInst (C, S1, S2);
|
return new SelectInst (C, S1, S2, "constantSelect", &insertBefore);
|
||||||
}
|
}
|
||||||
|
|
||||||
default: // must be a binary operator
|
default: // must be a binary operator
|
||||||
|
Reference in New Issue
Block a user