[llvm] r234292 - Try to fix MSVC build after r234290
Duncan P. N. Exon Smith
dexonsmith at apple.com
Mon Apr 6 21:33:42 PDT 2015
Author: dexonsmith
Date: Mon Apr 6 23:33:42 2015
New Revision: 234292
URL: http://llvm.org/viewvc/llvm-project?rev=234292&view=rev
Log:
Try to fix MSVC build after r234290
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/2308
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=234292&r1=234291&r2=234292&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfUnit.cpp Mon Apr 6 23:33:42 2015
@@ -1015,7 +1015,7 @@ 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 (auto RTy = resolve(Elements[0]))
+ if (MDType *RTy = resolve(Elements[0]))
addType(Buffer, RTy);
bool isPrototyped = true;
@@ -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 (auto Ty = resolve(Args[0]))
+ if (MDType *Ty = resolve(Args[0]))
addType(SPDie, Ty);
unsigned VK = SP.getVirtuality();
More information about the llvm-commits
mailing list