Mercurial > hg > CbC > CbC_llvm
changeset 251:289b6d909d63
fix setjmp
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 08:19:03 +0900 |
parents | 6ce7c7edee53 |
children | 731cecd08f47 |
files | clang/lib/Parse/ParseCbC.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/clang/lib/Parse/ParseCbC.cpp Thu Aug 17 20:34:53 2023 +0900 +++ b/clang/lib/Parse/ParseCbC.cpp Fri Aug 18 08:19:03 2023 +0900 @@ -156,10 +156,8 @@ IdentifierInfo *II = PP.getIdentifierInfo("__builtin_setjmp"); if (II != nullptr) { int BuiltinID = II->getBuiltinID(); - - if (BuiltinID != Builtin::BI__builtin_setjmp) - return true; - } + return (BuiltinID == Builtin::BI__builtin_setjmp); + } return false; }