File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 21
21
22
22
#include " swift/Basic/InlineBitfield.h"
23
23
#include " llvm/ADT/StringRef.h"
24
+ #include " llvm/Support/Compiler.h"
24
25
#include " llvm/Support/ErrorHandling.h"
25
26
#include " llvm/Support/raw_ostream.h"
26
27
#include < stdint.h>
28
+ #include < assert.h>
27
29
28
30
namespace swift {
29
31
@@ -52,6 +54,7 @@ static inline llvm::StringRef keywordOf(ReferenceOwnership ownership) {
52
54
}
53
55
// We cannot use llvm_unreachable() because this is used by the stdlib.
54
56
assert (false && " impossible" );
57
+ LLVM_BUILTIN_UNREACHABLE;
55
58
}
56
59
57
60
static inline llvm::StringRef manglingOf (ReferenceOwnership ownership) {
@@ -64,6 +67,7 @@ static inline llvm::StringRef manglingOf(ReferenceOwnership ownership) {
64
67
}
65
68
// We cannot use llvm_unreachable() because this is used by the stdlib.
66
69
assert (false && " impossible" );
70
+ LLVM_BUILTIN_UNREACHABLE;
67
71
}
68
72
69
73
static inline bool isLessStrongThan (ReferenceOwnership left,
You can’t perform that action at this time.
0 commit comments