Fix polly build after LLVM r234263
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 7 Apr 2015 00:29:05 +0000 (00:29 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 7 Apr 2015 00:29:05 +0000 (00:29 +0000)
llvm-svn: 234266

polly/lib/Analysis/ScopDetectionDiagnostic.cpp

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