]> granicus.if.org Git - llvm/commitdiff
Silence C4715 warning from MSVC (NFC).
authorKristof Beyls <kristof.beyls@arm.com>
Tue, 7 Nov 2017 11:54:00 +0000 (11:54 +0000)
committerKristof Beyls <kristof.beyls@arm.com>
Tue, 7 Nov 2017 11:54:00 +0000 (11:54 +0000)
The warning started triggering after r317560.
This commit silences it in the same way as previously done in a similar
situation, see
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20140915/236088.html

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317568 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/GlobalISel/LegalizerInfo.cpp

index 2bd8da3d83b9aa8ec34c198805bdb0283e4b7a7f..caf6600ac0dedf594a6d6ff120e7b446235533e4 100644 (file)
@@ -307,6 +307,7 @@ LegalizerInfo::findAction(const SizeAndActionsVec &Vec, const uint32_t Size) {
   case NotFound:
     llvm_unreachable("NotFound");
   }
+  llvm_unreachable("Action has an unknown enum value");
 }
 
 std::pair<LegalizerInfo::LegalizeAction, LLT>