Skip to content

Commit ea95ab4

Browse files
committed
[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.
1 parent a6444b2 commit ea95ab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Serialization/ModuleFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ class ModuleFile
434434

435435
/// Emits one last diagnostic, logs the error, and then aborts for the stack
436436
/// trace.
437-
void fatal(llvm::Error error) LLVM_ATTRIBUTE_NORETURN;
437+
LLVM_ATTRIBUTE_NORETURN void fatal(llvm::Error error);
438438

439439
ASTContext &getContext() const {
440440
assert(FileContext && "no associated context yet");

0 commit comments

Comments
 (0)