Try to revive the Polly builders after this LLVM API change.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 25 Oct 2012 07:25:56 +0000 (07:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 25 Oct 2012 07:25:56 +0000 (07:25 +0000)
llvm-svn: 166666

polly/lib/CodeGen/CodeGeneration.cpp

index 804ff9f7ce9e863137e3454c2713cffb3e16bd7a..fcd2d5295d37fcbc43e50212d786c99708a1810d 100644 (file)
@@ -358,7 +358,8 @@ private:
 }
 
 IntegerType *ClastStmtCodeGen::getIntPtrTy() {
-  return P->getAnalysis<DataLayout>().getIntPtrType(Builder.getContext());
+  // FIXME: This might need to get a proper address space. Hard code 0 for now.
+  return P->getAnalysis<DataLayout>().getIntPtrType(Builder.getContext(), 0u);
 }
 
 const std::vector<std::string> &ClastStmtCodeGen::getParallelLoops() {