From: Simon Pilgrim Date: Fri, 28 Oct 2016 10:09:35 +0000 (+0000) Subject: Fix MSVC "not all control paths return a value" warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83bce6df92bbea500477faaab5dfc32f7d2d1329;p=clang Fix MSVC "not all control paths return a value" warning Add unreachable after enum switch statement git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285390 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Action.cpp b/lib/Driver/Action.cpp index 4e0c224c3b..85e466a440 100644 --- a/lib/Driver/Action.cpp +++ b/lib/Driver/Action.cpp @@ -146,6 +146,8 @@ llvm::StringRef Action::GetOffloadKindName(OffloadKind Kind) { // TODO: Add other programming models here. } + + llvm_unreachable("invalid offload kind"); } void InputAction::anchor() {}