[llvm-commits] [polly] r170853 - /polly/trunk/lib/CodeGen/IslAst.cpp
Sebastian Pop
spop at codeaurora.org
Thu Dec 20 23:27:13 PST 2012
Author: spop
Date: Fri Dec 21 01:27:13 2012
New Revision: 170853
URL: http://llvm.org/viewvc/llvm-project?rev=170853&view=rev
Log:
do not access Info when it is NULL
Modified:
polly/trunk/lib/CodeGen/IslAst.cpp
Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=170853&r1=170852&r2=170853&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Fri Dec 21 01:27:13 2012
@@ -269,17 +269,17 @@
return Node;
struct IslAstUser *Info = (struct IslAstUser *) isl_id_get_user(Id);
struct AstBuildUserInfo *BuildInfo = (struct AstBuildUserInfo *) User;
+
if (Info) {
if (Info->IsOutermostParallel)
BuildInfo->InParallelFor = 0;
if (!containsLoops(isl_ast_node_for_get_body(Node)))
if (astScheduleDimIsParallel(Build, BuildInfo->Deps))
Info->IsInnermostParallel = 1;
+ if (!Info->Context)
+ Info->Context = isl_ast_build_copy(Build);
}
- if (!Info->Context)
- Info->Context = isl_ast_build_copy(Build);
-
isl_id_free(Id);
return Node;
}
More information about the llvm-commits
mailing list