r285390 - Fix MSVC "not all control paths return a value" warning
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 28 03:09:35 PDT 2016
Author: rksimon
Date: Fri Oct 28 05:09:35 2016
New Revision: 285390
URL: http://llvm.org/viewvc/llvm-project?rev=285390&view=rev
Log:
Fix MSVC "not all control paths return a value" warning
Add unreachable after enum switch statement
Modified:
cfe/trunk/lib/Driver/Action.cpp
Modified: cfe/trunk/lib/Driver/Action.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Action.cpp?rev=285390&r1=285389&r2=285390&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Action.cpp (original)
+++ cfe/trunk/lib/Driver/Action.cpp Fri Oct 28 05:09:35 2016
@@ -146,6 +146,8 @@ llvm::StringRef Action::GetOffloadKindNa
// TODO: Add other programming models here.
}
+
+ llvm_unreachable("invalid offload kind");
}
void InputAction::anchor() {}
More information about the cfe-commits
mailing list