Commit 92ef101d authored by aqjune's avatar aqjune
Browse files

[IR] Remove switch's default block that causes clang 8 raise error

parent 103968d1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -942,8 +942,6 @@ Constant *llvm::ConstantFoldUnaryInstruction(unsigned Opcode, Constant *C) {
  assert(Instruction::isUnaryOp(Opcode) && "Non-unary instruction detected");

  switch (static_cast<Instruction::UnaryOps>(Opcode)) {
  default:
    break;
  case Instruction::FNeg: {
    // Handle scalar UndefValue. Vectors are always evaluated per element.
    bool HasScalarUndef = !C->getType()->isVectorTy() && isa<UndefValue>(C);