diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 18:07:41 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-04-07 18:07:41 +0000 |
commit | 9a597ef1990f586573cbbba2895fae68906b25ee (patch) | |
tree | 9132a7d5119efc591a48840fcb8fa2f31d6399de /llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp | |
parent | b6ac8fa39e6a4a154e848bc51781bfff5a69c8da (diff) | |
download | bcm5719-llvm-9a597ef1990f586573cbbba2895fae68906b25ee.tar.gz bcm5719-llvm-9a597ef1990f586573cbbba2895fae68906b25ee.zip |
Revert "Try a third time to fix MSVC build after r234290"
This reverts commit r234295 (and r234294 and r234292 before it). I
removed the implicit conversion to `MDTuple*` r234326, so there's no
longer an ambiguity in `operator[]()`.
I think MSVC should accept the original code now...
llvm-svn: 234335
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp')
-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 253010c6443..f4c430ae705 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(DITypeRef(Elements[0u]))) + if (auto RTy = resolve(Elements[0])) addType(Buffer, RTy); bool isPrototyped = true; - if (Elements.size() == 2 && !DITypeRef(Elements[1u])) + if (Elements.size() == 2 && !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(DITypeRef(Args[0u]))) + if (auto Ty = resolve(Args[0])) addType(SPDie, Ty); unsigned VK = SP.getVirtuality(); |