diff options
author | aqjune <aqjune@gmail.com> | 2019-11-05 16:31:51 +0900 |
---|---|---|
committer | aqjune <aqjune@gmail.com> | 2019-11-05 16:31:51 +0900 |
commit | 92ef101da91d39525043034694b3088d0a08f43f (patch) | |
tree | 95c0e9b9d28f315d3087d4242e12a7ab9fdad283 /llvm/lib/IR/ConstantFold.cpp | |
parent | 103968d147b135ebfcee69d6d7a1428163e66aaa (diff) | |
download | llvm-92ef101da91d39525043034694b3088d0a08f43f.zip llvm-92ef101da91d39525043034694b3088d0a08f43f.tar.gz llvm-92ef101da91d39525043034694b3088d0a08f43f.tar.bz2 |
[IR] Remove switch's default block that causes clang 8 raise error
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantFold.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index 218a25f..84f8652 100644 --- a/llvm/lib/IR/ConstantFold.cpp +++ b/llvm/lib/IR/ConstantFold.cpp @@ -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); |