File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -852,7 +852,7 @@ class IRGenModule {
852
852
llvm::PointerType *getEnumValueWitnessTablePtrTy ();
853
853
854
854
void unimplemented (SourceLoc, StringRef Message);
855
- LLVM_ATTRIBUTE_NORETURN
855
+ [[noreturn]]
856
856
void fatal_unimplemented (SourceLoc, StringRef Message);
857
857
void error (SourceLoc loc, const Twine &message);
858
858
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ class ModuleFile
333
333
334
334
// / Emits one last diagnostic, adds the current module details and errors to
335
335
// / the pretty stack trace, and then aborts.
336
- LLVM_ATTRIBUTE_NORETURN void fatal (llvm::Error error) const ;
336
+ [[noreturn]] void fatal (llvm::Error error) const ;
337
337
void fatalIfNotSuccess (llvm::Error error) const {
338
338
if (error)
339
339
fatal (std::move (error));
@@ -344,7 +344,7 @@ class ModuleFile
344
344
fatal (expected.takeError ());
345
345
}
346
346
347
- LLVM_ATTRIBUTE_NORETURN void fatal () const {
347
+ [[noreturn]] void fatal () const {
348
348
fatal (llvm::make_error<llvm::StringError>(
349
349
" (see \" While...\" info below)" , llvm::inconvertibleErrorCode ()));
350
350
}
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ class ModuleFileSharedCore {
371
371
372
372
// / Emits one last diagnostic, logs the error, and then aborts for the stack
373
373
// / trace.
374
- LLVM_ATTRIBUTE_NORETURN void fatal (llvm::Error error) const ;
374
+ [[noreturn]] void fatal (llvm::Error error) const ;
375
375
void fatalIfNotSuccess (llvm::Error error) const {
376
376
if (error)
377
377
fatal (std::move (error));
You can’t perform that action at this time.
0 commit comments