mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Move ConstantExpr to 2.5 API.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -44,9 +44,9 @@ static Value *isBytewiseValue(Value *V, LLVMContext& Context) {
|
||||
// corresponding integer value is "byteable". An important case is 0.0.
|
||||
if (ConstantFP *CFP = dyn_cast<ConstantFP>(V)) {
|
||||
if (CFP->getType() == Type::FloatTy)
|
||||
V = Context.getConstantExprBitCast(CFP, Type::Int32Ty);
|
||||
V = ConstantExpr::getBitCast(CFP, Type::Int32Ty);
|
||||
if (CFP->getType() == Type::DoubleTy)
|
||||
V = Context.getConstantExprBitCast(CFP, Type::Int64Ty);
|
||||
V = ConstantExpr::getBitCast(CFP, Type::Int64Ty);
|
||||
// Don't handle long double formats, which have strange constraints.
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user