[llvm] r234335 - Revert "Try a third time to fix MSVC build after r234290"
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Apr 7 11:07:41 PDT 2015
Author: dexonsmith
Date: Tue Apr 7 13:07:41 2015
New Revision: 234335
URL: http://llvm.org/viewvc/llvm-project?rev=234335&view=rev
Log:
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...
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp?rev=234335&r1=234334&r2=234335&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Tue Apr 7 13:07:41 2015
@@ -1015,11 +1015,11 @@ void DwarfUnit::constructTypeDIE(DIE &Bu
// 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::applySubprogramAttribute
// 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();
More information about the llvm-commits
mailing list