We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e013282 commit 7d9d3baCopy full SHA for 7d9d3ba
lib/AST/Attr.cpp
@@ -23,6 +23,7 @@
23
#include "swift/Basic/Defer.h"
24
#include "llvm/ADT/SmallString.h"
25
#include "llvm/Support/raw_ostream.h"
26
+#include "llvm/Support/ErrorHandling.h"
27
#include "llvm/ADT/StringSwitch.h"
28
using namespace swift;
29
@@ -46,7 +47,7 @@ TypeAttrKind TypeAttributes::getAttrKindFromString(StringRef Str) {
46
47
/// Return the name (like "autoclosure") for an attribute ID.
48
const char *TypeAttributes::getAttrName(TypeAttrKind kind) {
49
switch (kind) {
- default: assert(0 && "Invalid attribute ID");
50
+ default: llvm_unreachable("Invalid attribute ID");
51
#define TYPE_ATTR(X) case TAK_##X: return #X;
52
#include "swift/AST/Attr.def"
53
}
0 commit comments