aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.cpp
diff options
context:
space:
mode:
authoraqjune <aqjune@gmail.com>2019-11-05 16:31:51 +0900
committeraqjune <aqjune@gmail.com>2019-11-05 16:31:51 +0900
commit92ef101da91d39525043034694b3088d0a08f43f (patch)
tree95c0e9b9d28f315d3087d4242e12a7ab9fdad283 /llvm/lib/IR/ConstantFold.cpp
parent103968d147b135ebfcee69d6d7a1428163e66aaa (diff)
downloadllvm-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.cpp2
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);