summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Core.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-05-14 12:20:19 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-05-14 12:20:19 +0000
commite91a631df796af7717306b8d59c69424ddde47eb (patch)
tree1312effdd3f72b9692509d0795e209a915afe3ae /llvm/lib/IR/Core.cpp
parent155f5a4f47da8f17b6a8e5d747ec365d0725cc64 (diff)
downloadbcm5719-llvm-e91a631df796af7717306b8d59c69424ddde47eb.tar.gz
bcm5719-llvm-e91a631df796af7717306b8d59c69424ddde47eb.zip
Fix "not all control paths return a value" MSVC warning. NFCI.
llvm-svn: 332238
Diffstat (limited to 'llvm/lib/IR/Core.cpp')
-rw-r--r--llvm/lib/IR/Core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp
index 0ccf06af675..02311db66e3 100644
--- a/llvm/lib/IR/Core.cpp
+++ b/llvm/lib/IR/Core.cpp
@@ -290,6 +290,7 @@ map_to_llvmModFlagBehavior(LLVMModuleFlagBehavior Behavior) {
case LLVMModuleFlagBehaviorAppendUnique:
return Module::ModFlagBehavior::AppendUnique;
}
+ llvm_unreachable("Unknown LLVMModuleFlagBehavior");
}
static LLVMModuleFlagBehavior
OpenPOWER on IntegriCloud