From 3fdecaee2a654db652e9dd1524abd07be2911ffc Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 14 May 2011 19:02:39 +0000 Subject: [PATCH] CodeGeneration: Localize variables llvm-svn: 131359 --- polly/lib/CodeGeneration.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/polly/lib/CodeGeneration.cpp b/polly/lib/CodeGeneration.cpp index 898540c46010..7100470a0407 100644 --- a/polly/lib/CodeGeneration.cpp +++ b/polly/lib/CodeGeneration.cpp @@ -1263,7 +1263,6 @@ class CodeGeneration : public ScopPass { DominatorTree *DT; ScalarEvolution *SE; ScopDetection *SD; - CloogInfo *C; LoopInfo *LI; TargetData *TD; RegionInfo *RI; @@ -1416,7 +1415,6 @@ class CodeGeneration : public ScopPass { Dependences *DP = &getAnalysis(); SE = &getAnalysis(); LI = &getAnalysis(); - C = &getAnalysis(); SD = &getAnalysis(); TD = &getAnalysis(); RI = &getAnalysis(); @@ -1462,7 +1460,8 @@ class CodeGeneration : public ScopPass { addOpenMPDefinitions(builder); ClastStmtCodeGen CodeGen(S, *SE, DT, SD, DP, TD, builder); - CodeGen.codegen(C->getClast()); + CloogInfo &C = getAnalysis(); + CodeGen.codegen(C.getClast()); parallelLoops.insert(parallelLoops.begin(), CodeGen.getParallelLoops().begin(),