r354681 - Fix "not all control paths return" warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 22 09:37:59 PST 2019
Author: rksimon
Date: Fri Feb 22 09:37:59 2019
New Revision: 354681
URL: http://llvm.org/viewvc/llvm-project?rev=354681&view=rev
Log:
Fix "not all control paths return" warning. NFCI.
Modified:
cfe/trunk/include/clang/Analysis/AnyCall.h
Modified: cfe/trunk/include/clang/Analysis/AnyCall.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/AnyCall.h?rev=354681&r1=354680&r2=354681&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/AnyCall.h (original)
+++ cfe/trunk/include/clang/Analysis/AnyCall.h Fri Feb 22 09:37:59 2019
@@ -173,6 +173,7 @@ public:
case Deallocator:
return cast<FunctionDecl>(D)->getReturnType();
}
+ llvm_unreachable("Unknown AnyCall::Kind");
}
/// \returns Function identifier if it is a named declaration,
More information about the cfe-commits
mailing list