[PATCH] D21744: [OpenCL] Fix code generation of kernel pipe parameters.

Anastasia Stulova via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 07:45:15 PDT 2016


Anastasia accepted this revision.
Anastasia added a comment.
This revision is now accepted and ready to land.

LGTM!


================
Comment at: lib/CodeGen/CodeGenFunction.cpp:535
@@ -531,3 +534,3 @@
       if (isPipe)
-        baseTypeName =
-          cast<PipeType>(ty)->getElementType().getCanonicalType().getAsString(Policy);
+        baseTypeName = ty.getCanonicalType()
+                           ->getAs<PipeType>()
----------------
I am guessing this is output of clang-format, looks a bit strange though...


http://reviews.llvm.org/D21744





More information about the cfe-commits mailing list