Fix polly build after LLVM r235327
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 20 Apr 2015 20:28:43 +0000 (20:28 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 20 Apr 2015 20:28:43 +0000 (20:28 +0000)
llvm-svn: 235343

polly/lib/Analysis/ScopDetectionDiagnostic.cpp

index b4509b2..1c5135f 100644 (file)
@@ -72,7 +72,7 @@ void getDebugLocation(const Region *R, unsigned &LineBegin, unsigned &LineEnd,
       if (!DL)
         continue;
 
-      DIScope Scope = cast<MDScope>(DL.getScope());
+      auto *Scope = cast<MDScope>(DL.getScope());
 
       if (FileName.empty())
         FileName = Scope->getFilename();