]> granicus.if.org Git - clang/commitdiff
Fix typo in OpenCL type mangling. This is still bogus (we should either use the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 3 Feb 2016 01:43:59 +0000 (01:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 3 Feb 2016 01:43:59 +0000 (01:43 +0000)
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

index c9673c6f26bd8a956c01c838de7ec624809a4312..d30f95d0367ca4258a1af71d33a1023bf7a574e9 100644 (file)
@@ -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";