Try to fix MSVC build after r234290
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 7 Apr 2015 04:33:42 +0000 (04:33 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 7 Apr 2015 04:33:42 +0000 (04:33 +0000)
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/2308

llvm-svn: 234292

llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp

index f4c430a..baa9975 100644 (file)
@@ -1015,7 +1015,7 @@ 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 (auto RTy = resolve(Elements[0]))
+      if (MDType *RTy = resolve(Elements[0]))
         addType(Buffer, RTy);
 
     bool isPrototyped = true;
@@ -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 (auto Ty = resolve(Args[0]))
+    if (MDType *Ty = resolve(Args[0]))
       addType(SPDie, Ty);
 
   unsigned VK = SP.getVirtuality();