[all-commits] [llvm/llvm-project] e82d2e: Recommit "[Sema] Fix null pointer dereference hand...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Mar 16 21:40:29 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e82d2e8c11119ca34bcccb8fef67a8727543a978
https://github.com/llvm/llvm-project/commit/e82d2e8c11119ca34bcccb8fef67a8727543a978
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-03-16 (Thu, 16 Mar 2023)
Changed paths:
M clang/lib/Sema/SemaStmtAttr.cpp
M clang/test/Sema/attr-alwaysinline.cpp
M clang/test/Sema/attr-noinline.cpp
Log Message:
-----------
Recommit "[Sema] Fix null pointer dereference handleAlwaysInlineAttr."
Remove use of constexpr if that failed on the build bots.
Original commit message:
It's possible for `getCalleeDecl()` to return a null pointer.
This was encountered by a user of our downstream compiler.
The case involved a DependentScopeDeclRefExpr.
Since this seems to only be for a warning diagnostic, I skipped
the diagnostic check if it returned null. But mabye there's a
different way to fix this.
More information about the All-commits
mailing list