[llvm] r293253 - [NVPTX] [InstCombine] Add llvm_unreachable to appease MSVC.

Justin Lebar via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 26 18:04:07 PST 2017


Author: jlebar
Date: Thu Jan 26 20:04:07 2017
New Revision: 293253

URL: http://llvm.org/viewvc/llvm-project?rev=293253&view=rev
Log:
[NVPTX] [InstCombine] Add llvm_unreachable to appease MSVC.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp?rev=293253&r1=293252&r2=293253&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp Thu Jan 26 20:04:07 2017
@@ -1743,6 +1743,7 @@ static Instruction *SimplifyNVVMIntrinsi
         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) {




More information about the llvm-commits mailing list