We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1275683 commit 3a12f35Copy full SHA for 3a12f35
llvm/lib/IR/Constants.cpp
@@ -2270,14 +2270,14 @@ bool ConstantExpr::isDesirableCastOp(unsigned Opcode) {
2270
switch (Opcode) {
2271
case Instruction::ZExt:
2272
case Instruction::SExt:
2273
- return false;
2274
- case Instruction::Trunc:
2275
case Instruction::FPTrunc:
2276
case Instruction::FPExt:
2277
case Instruction::UIToFP:
2278
case Instruction::SIToFP:
2279
case Instruction::FPToUI:
2280
case Instruction::FPToSI:
+ return false;
+ case Instruction::Trunc:
2281
case Instruction::PtrToInt:
2282
case Instruction::IntToPtr:
2283
case Instruction::BitCast:
0 commit comments