mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] Rename swift_runtime_unreachable to swift_unreachable and make it use LLVM's support when available.
This commit is contained in:
@@ -23,7 +23,7 @@ unsigned long long swift_reflection_classIsSwiftMask = 2;
|
||||
#include "swift/Reflection/ReflectionContext.h"
|
||||
#include "swift/Reflection/TypeLowering.h"
|
||||
#include "swift/Remote/CMemoryReader.h"
|
||||
#include "swift/Runtime/Unreachable.h"
|
||||
#include "swift/Basic/Unreachable.h"
|
||||
|
||||
#if defined(__APPLE__) && defined(__MACH__)
|
||||
#include <TargetConditionals.h>
|
||||
@@ -406,7 +406,7 @@ swift_layout_kind_t getTypeInfoKind(const TypeInfo &TI) {
|
||||
}
|
||||
}
|
||||
|
||||
swift_runtime_unreachable("Unhandled TypeInfoKind in switch");
|
||||
swift_unreachable("Unhandled TypeInfoKind in switch");
|
||||
}
|
||||
|
||||
static swift_typeinfo_t convertTypeInfo(const TypeInfo *TI) {
|
||||
|
||||
Reference in New Issue
Block a user