From: Justin Lebar Date: Fri, 27 Jan 2017 02:04:07 +0000 (+0000) Subject: [NVPTX] [InstCombine] Add llvm_unreachable to appease MSVC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7e6bc8a633f9bb2f517940e3b1baa59415f8091;p=llvm [NVPTX] [InstCombine] Add llvm_unreachable to appease MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293253 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineCalls.cpp b/lib/Transforms/InstCombine/InstCombineCalls.cpp index 8109441eec9..19746651d99 100644 --- a/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -1743,6 +1743,7 @@ static Instruction *SimplifyNVVMIntrinsic(IntrinsicInst *II, InstCombiner &IC) { Instruction::FDiv, ConstantFP::get(II->getArgOperand(0)->getType(), 1), II->getArgOperand(0), II->getName()); } + llvm_unreachable("All SpecialCase enumerators should be handled in switch."); } Instruction *InstCombiner::visitVAStartInst(VAStartInst &I) {