[PATCH] D17578: [OpenCL]Allowing explicit conversion of "0" to event_t type

Xiuli PAN via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 25 00:43:01 PST 2016


pxli168 added inline comments.

================
Comment at: lib/Sema/SemaCast.cpp:2324-2326
@@ +2323,5 @@
+        } else {
+        Self.Diag(OpRange.getBegin(),
+                  diag::error_opencl_cast_non_zero_to_event_t)
+                  << intValue.toString(10) << SrcExpr.get()->getSourceRange();
+        SrcExpr = ExprError();
----------------
pxli168 wrote:
> Indent.
> You can try to use clang-format to help keep these right.
Need a test case for this.


http://reviews.llvm.org/D17578





More information about the cfe-commits mailing list