Make NORETURN working with MSVC. MSVC only accepts NORETURN in front of the

decl so move it there. GCC accepts it both in front and after decls.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88791 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2009-11-14 14:14:58 +00:00
parent 067d024b05
commit 7b068610eb
2 changed files with 7 additions and 5 deletions

View File

@ -58,6 +58,8 @@
#ifdef __GNUC__
#define NORETURN __attribute__((noreturn))
#elif defined(_MSC_VER)
#define NORETURN __declspec(noreturn)
#else
#define NORETURN
#endif