yaxunl added inline comments.
================ Comment at: lib/AST/ASTContext.cpp:1942 case Type::Pipe: { - TypeInfo Info = getTypeInfo(cast<PipeType>(T)->getElementType()); - Width = Info.Width; - Align = Info.Align; + Width = Target->getPointerWidth(0); + Align = Target->getPointerAlign(0); ---------------- pipe is in global address space. shouldn't it be ``` Width = Target->getPointerWidth(getTargetAddressSpace(LangAS::opencl_global)); ``` the same with align. https://reviews.llvm.org/D33597 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits