mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Move LLVM_NORETURN to declaration start
On Windows, `LLVM_NORETURN` expands to `__declspec(noreturn)`, which must be placed at the start of the declaration. All other possible expansions of that macro should also support being placed at the start of the declaration.
This commit is contained in:
@@ -434,7 +434,7 @@ public:
|
||||
|
||||
/// Emits one last diagnostic, logs the error, and then aborts for the stack
|
||||
/// trace.
|
||||
void fatal(llvm::Error error) LLVM_ATTRIBUTE_NORETURN;
|
||||
LLVM_ATTRIBUTE_NORETURN void fatal(llvm::Error error);
|
||||
|
||||
ASTContext &getContext() const {
|
||||
assert(FileContext && "no associated context yet");
|
||||
|
||||
Reference in New Issue
Block a user