https://llvm.org/bugs/show_bug.cgi?id=23325

            Bug ID: 23325
           Summary: [ms] manging mismatch with cl
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

This is mangled differently by clang-cl and cl:

struct SkPoint {};
class SkXfermode {};
class SkPaint {};

class SkCanvas {
 protected:
  void onDrawPatch(const SkPoint cubics[12], const SkPoint texCoords[4],
                   SkXfermode* xmode, const SkPaint& paint);
};

void SkCanvas::onDrawPatch(const SkPoint cubics[12], const SkPoint
texCoords[4],
                           SkXfermode* xmode, const SkPaint& paint) {}



>..\..\llvm-rw-build-rel\bin\clang-cl /c test.cc
>dumpbin /symbols test.obj
...
009 00000000 SECT1  notype ()    External     |
?onDrawPatch@SkCanvas@@IAEXQBUSkPoint@@QBU2@PAVSkXfermode@@@Z



> cl /c test.cc
Microsoft (R) C/C++ Optimizing Compiler Version 18.00.31101 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

test.cc

>dumpbin /symbols test.obj
...
008 00000000 SECT3  notype ()    External     |
?onDrawPatch@SkCanvas@@IAEXQBUSkPoint@@0PAVSkXfermode@@@Z



(The two manglings do demangle to the same thing though :-/)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to