Rewrite the logic for detecting if we are deducing addr space of a pointee type to take into account special logic for arrays.
For pointer/references to arrays we can have any number of parenthesis expressions as well as nested pointers.
Details
Details
- Reviewers
svenvh rjmccall - Commits
- rG5c10d7361c19: Merging r369251: --------------------------------------------------------------…
rL369499: Merging r369251:
rGeb801abd5817: [OpenCL] Fix addr space deduction for pointers/references to arrays.
rC369251: [OpenCL] Fix addr space deduction for pointers/references to arrays.
rL369251: [OpenCL] Fix addr space deduction for pointers/references to arrays.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM, but please clang-format your patch before committing (esp. spacing around binary operators).
lib/Sema/SemaType.cpp | ||
---|---|---|
7396 ↗ | (On Diff #214806) | parentheses (also below). |