Author: rsmith Date: Tue Feb 2 19:43:59 2016 New Revision: 259618 URL: http://llvm.org/viewvc/llvm-project?rev=259618&view=rev Log: Fix typo in OpenCL type mangling. This is still bogus (we should either use the actual source name of the typedef or a vendor mangling) but at least it stands a chance of demangling now.
We would also benefit from some test coverage of this (OpenCL + __attribute__((overloadable)) is probably required to reach this). Modified: cfe/trunk/lib/AST/ItaniumMangle.cpp Modified: cfe/trunk/lib/AST/ItaniumMangle.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ItaniumMangle.cpp?rev=259618&r1=259617&r2=259618&view=diff ============================================================================== --- cfe/trunk/lib/AST/ItaniumMangle.cpp (original) +++ cfe/trunk/lib/AST/ItaniumMangle.cpp Tue Feb 2 19:43:59 2016 @@ -2111,7 +2111,7 @@ void CXXNameMangler::mangleType(const Bu Out << "20ocl_image2dmsaadepth"; break; case BuiltinType::OCLImage2dArrayMSAADepth: - Out << "35ocl_image2darraymsaadepth"; + Out << "25ocl_image2darraymsaadepth"; break; case BuiltinType::OCLImage3d: Out << "11ocl_image3d"; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits