[all-commits] [llvm/llvm-project] 4d218c: [Clang] [Sema] Effects: Correctly detect `(x ? a :...
Doug Wyatt via All-commits
all-commits at lists.llvm.org
Tue Oct 8 01:20:26 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4d218caa7716743061e8d34d61b2181c94b16440
https://github.com/llvm/llvm-project/commit/4d218caa7716743061e8d34d61b2181c94b16440
Author: Doug Wyatt <doug at sonosphere.com>
Date: 2024-10-08 (Tue, 08 Oct 2024)
Changed paths:
M clang/lib/Sema/SemaFunctionEffects.cpp
M clang/test/Sema/attr-nonblocking-constraints.cpp
Log Message:
-----------
[Clang] [Sema] Effects: Correctly detect `(x ? a : b)` as nonblocking when a and b are (#111224)
Correctly detect `(x ? a : b)` as nonblocking when `a` and `b` are. Use
`FunctionEffectsRef::get` to get to the actual effect set instead of trying
to retrieve it manually via the `FunctionProtoType` as we may have to
look through function pointers etc. in some cases.
---------
Co-authored-by: Doug Wyatt <dwyatt at apple.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list