diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 04:49:13 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 04:49:13 +0000 |
commit | 8a4569bd2bba95cfa0f805c647d24052dc99c2d6 (patch) | |
tree | 3b1522f8b4fd05aabcc6dd2f602042c914e62cba | |
parent | d526486763c9b46f59d6eee85683f2304a45ccf0 (diff) | |
download | bcm5719-llvm-8a4569bd2bba95cfa0f805c647d24052dc99c2d6.tar.gz bcm5719-llvm-8a4569bd2bba95cfa0f805c647d24052dc99c2d6.zip |
Try again to fix MSVC build after r234290
Still failing:
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/2309
llvm-svn: 234294
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp index baa99758e3c..dadc9ba59a2 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp @@ -1015,11 +1015,11 @@ void DwarfUnit::constructTypeDIE(DIE &Buffer, DICompositeType CTy) { // Add return type. A void return won't have a type. auto Elements = cast<MDSubroutineType>(CTy)->getTypeArray(); if (Elements.size()) - if (MDType *RTy = resolve(Elements[0])) + if (MDType *RTy = resolve(DITypeRef(Elements[0]))) addType(Buffer, RTy); bool isPrototyped = true; - if (Elements.size() == 2 && !Elements[1]) + if (Elements.size() == 2 && !DITypeRef(Elements[1])) isPrototyped = false; 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 // return type. if (Args.size()) - if (MDType *Ty = resolve(Args[0])) + if (MDType *Ty = resolve(DITypeRef(Args[0]))) addType(SPDie, Ty); unsigned VK = SP.getVirtuality(); |