pet_scop_extract_from_C_source: reset user pointers on parameter ids in result
commit4f748e15ba5b41c124054c616df7942e42972159
authorSven Verdoolaege <skimo@kotnet.org>
Sun, 22 Jan 2012 21:48:35 +0000 (22 22:48 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 2 Feb 2012 11:40:52 +0000 (2 12:40 +0100)
tree0c28abed756a780f011929e7d2d0bf177307b1f2
parent140f3455e967b56d1c2979729b66bc68aafd4e71
pet_scop_extract_from_C_source: reset user pointers on parameter ids in result

For each parameter, pet stores a reference to the corresponding ValueDecl *
in the user pointer of its isl_id.  When the ASTContext is destroyed, these
pointers no longer have a valid value.  Moreover, in interactive applications,
we want the user to be able to refer to the parameter simply by name.
Since isl_ids with different user pointers are treated as being distinct,
this requires the isl_ids to have a NULL user pointer.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
pet.cc
scop.c
scop.h