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

            Bug ID: 37944
           Summary: ItaniumDemangle - struct Db alignment warnings
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

MSVC is warning of alignment issues in the code:

ItaniumPartialDemangler::ItaniumPartialDemangler()
    : RootNode(nullptr), Context(new Db{nullptr, nullptr}) {}

C:\ps4-buildslave2\llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast\llvm.src\lib\Demangle\ItaniumDemangle.cpp(5164):
warning C4316: '`anonymous-namespace'::Db': object allocated on the heap may
not be aligned 16

http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/17987/steps/build/logs/warnings%20%284%29

I think this is due to Db containing BumpPointerAllocator which contains an
aligned member:

class BumpPointerAllocator {
  ...
  alignas(16) char InitialBuffer[AllocSize];
  ...
};

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to