The sampler handling logic in SemaInit.cpp would inadvertently treat
parentheses around sampler arguments as an implicit cast, leading to
an unreachable "can't implicitly cast lvalue to rvalue with
this cast kind". Fix by ignoring parentheses once we are in the
sampler initializer case.
Details
Details
- Reviewers
Anastasia - Commits
- rG9bea39db27e4: Merging r368561: --------------------------------------------------------------…
rL368843: Merging r368561:
rG06385d013d08: [OpenCL] Ignore parentheses for sampler initialization
rL368561: [OpenCL] Ignore parentheses for sampler initialization
rC368561: [OpenCL] Ignore parentheses for sampler initialization
Diff Detail
Diff Detail
- Repository
- rL LLVM