From 9846e1752971a9127599a6f56521d901b7fb93cc Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 3 Feb 2016 01:43:59 +0000 Subject: [PATCH] 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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@259618 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ItaniumMangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AST/ItaniumMangle.cpp b/lib/AST/ItaniumMangle.cpp index c9673c6f26..d30f95d036 100644 --- a/lib/AST/ItaniumMangle.cpp +++ b/lib/AST/ItaniumMangle.cpp @@ -2111,7 +2111,7 @@ void CXXNameMangler::mangleType(const BuiltinType *T) { Out << "20ocl_image2dmsaadepth"; break; case BuiltinType::OCLImage2dArrayMSAADepth: - Out << "35ocl_image2darraymsaadepth"; + Out << "25ocl_image2darraymsaadepth"; break; case BuiltinType::OCLImage3d: Out << "11ocl_image3d"; -- 2.50.1