]> granicus.if.org Git - llvm/commitdiff
[NVPTX] [InstCombine] Add llvm_unreachable to appease MSVC.
authorJustin Lebar <jlebar@google.com>
Fri, 27 Jan 2017 02:04:07 +0000 (02:04 +0000)
committerJustin Lebar <jlebar@google.com>
Fri, 27 Jan 2017 02:04:07 +0000 (02:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@293253 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCalls.cpp

index 8109441eec99e4a5ffd318e5f1b35a135cafa5bf..19746651d99ad9721bfb893c7a7622c39c34fed8 100644 (file)
@@ -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) {