In OpenCL2.0 s6.5 all pointers are implicitly in generic address space unless address space is explicitly specified.
Correct the behavior of NULL constant detection - generic AS void pointer should be accepted as a valid NULL constant.
Paths
| Differential D15293
[OpenCL] Correct NULL constant handling after applying default AS ClosedPublic Authored by Anastasia on Dec 7 2015, 9:09 AM.
Details
Summary In OpenCL2.0 s6.5 all pointers are implicitly in generic address space unless address space is explicitly specified. Correct the behavior of NULL constant detection - generic AS void pointer should be accepted as a valid NULL constant.
Diff Detail Event Timelinepekka.jaaskelainen edited edge metadata. This revision is now accepted and ready to land.Dec 11 2015, 12:03 AM
Revision Contents
Diff 42076 lib/AST/Expr.cpp
lib/Sema/SemaExpr.cpp
test/SemaOpenCL/null_literal.cl
|