[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Fixed in https://github.com/llvm/llvm-project/commit/8ecf3660f2de3b88d10db0fd52d0bc80bda33dcc , thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D110315/new/ https://reviews.llvm.org/D110315

[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Arm Mac: http://45.33.8.238/macm1/18463/step_7.txt Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D110315/new/ https://reviews.llvm.org/D110315 ___ cfe-commits mailing list

[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Haojian Wu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG3778c1cd6ef5: [Sema] Fix a null pointer reference crash. (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang/lib/Sema/SemaDecl.cpp:14496 - if (FSI->UsesFPIntrin && !FD->hasAttr()) + if (FSI->UsesFPIntrin && FD && !FD->hasAttr()) FD->addAttr(StrictFPAttr::CreateImplicit(Context)); sammccall wrote: > hokein wrote:

[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 374538. hokein added a comment. upload a minimized testcase. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D110315/new/ https://reviews.llvm.org/D110315 Files: clang/lib/Sema/SemaDecl.cpp

[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a subscriber: mibintc. sammccall added a comment. This revision is now accepted and ready to land. LG because not crashing here is surely better than crashing, but I'm not sure whether the behaviour is actually right. If we can't be sure, maybe

[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang/lib/Sema/SemaDecl.cpp:14496 - if (FSI->UsesFPIntrin && !FD->hasAttr()) + if (FSI->UsesFPIntrin && FD && !FD->hasAttr()) FD->addAttr(StrictFPAttr::CreateImplicit(Context)); I have a reproduce test case, and

[PATCH] D110315: [Sema] Fix a null pointer reference crash.

2021-09-23 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. hokein requested review of this revision. Herald added a project: clang. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D110315 Files: clang/lib/Sema/SemaDecl.cpp Index: clang/lib/Sema/SemaDecl.cpp