[libcxxabi] r309649 - [demangler] Use _LIBCPP_UNREACHABLE()
Erik Pilkington via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 31 19:38:40 PDT 2017
Author: epilk
Date: Mon Jul 31 19:38:40 2017
New Revision: 309649
URL: http://llvm.org/viewvc/llvm-project?rev=309649&view=rev
Log:
[demangler] Use _LIBCPP_UNREACHABLE()
Modified:
libcxxabi/trunk/src/cxa_demangle.cpp
Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=309649&r1=309648&r2=309649&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Mon Jul 31 19:38:40 2017
@@ -896,7 +896,7 @@ public:
case SpecialSubKind::iostream:
return StringView("basic_iostream");
}
- return StringView();
+ _LIBCPP_UNREACHABLE();
}
void printLeft(OutputStream &S) const override {
@@ -945,7 +945,7 @@ public:
case SpecialSubKind::iostream:
return StringView("iostream");
}
- return StringView();
+ _LIBCPP_UNREACHABLE();
}
void printLeft(OutputStream &S) const override {
More information about the cfe-commits
mailing list