mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-04 19:17:12 +00:00
Try a third time to fix MSVC build after r234290
I have no idea what MSVC means with its error text here :(. http://lab.llvm.org:8011/builders/sanitizer-windows/builds/2310 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234295 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1015,11 +1015,11 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) {
|
|||||||
// Add return type. A void return won't have a type.
|
// Add return type. A void return won't have a type.
|
||||||
auto Elements = cast<MDSubroutineType>(CTy)->getTypeArray();
|
auto Elements = cast<MDSubroutineType>(CTy)->getTypeArray();
|
||||||
if (Elements.size())
|
if (Elements.size())
|
||||||
if (MDType *RTy = resolve(DITypeRef(Elements[0])))
|
if (MDType *RTy = resolve(DITypeRef(Elements[0u])))
|
||||||
addType(Buffer, RTy);
|
addType(Buffer, RTy);
|
||||||
|
|
||||||
bool isPrototyped = true;
|
bool isPrototyped = true;
|
||||||
if (Elements.size() == 2 && !DITypeRef(Elements[1]))
|
if (Elements.size() == 2 && !DITypeRef(Elements[1u]))
|
||||||
isPrototyped = false;
|
isPrototyped = false;
|
||||||
|
|
||||||
constructSubprogramArguments(Buffer, Elements);
|
constructSubprogramArguments(Buffer, Elements);
|
||||||
@@ -1318,7 +1318,7 @@ void DwarfUnit::applySubprogramAttributes(DISubprogram SP, DIE &SPDie,
|
|||||||
// Add a return type. If this is a type like a C/C++ void type we don't add a
|
// Add a return type. If this is a type like a C/C++ void type we don't add a
|
||||||
// return type.
|
// return type.
|
||||||
if (Args.size())
|
if (Args.size())
|
||||||
if (MDType *Ty = resolve(DITypeRef(Args[0])))
|
if (MDType *Ty = resolve(DITypeRef(Args[0u])))
|
||||||
addType(SPDie, Ty);
|
addType(SPDie, Ty);
|
||||||
|
|
||||||
unsigned VK = SP.getVirtuality();
|
unsigned VK = SP.getVirtuality();
|
||||||
|
Reference in New Issue
Block a user