ScopInfo: Make clear that no double-free problem exists
authorTobias Grosser <tobias@grosser.es>
Thu, 8 Sep 2016 14:08:07 +0000 (14:08 +0000)
committerTobias Grosser <tobias@grosser.es>
Thu, 8 Sep 2016 14:08:07 +0000 (14:08 +0000)
commit55a7af7da5b6cac6da012741dca48c8ab857801c
tree974b9a21b2caf85e280180d31ec81461a2b393b5
parentb316dc166f8ad41c6d845870e065ded9c1c54399
ScopInfo: Make clear that no double-free problem exists

When running the clang static analyser to check for memory issues, this code
originally showed a double free, as the analyser was unable to understand that
isl_set_free always returns NULL and consequently later uses of the isl object
we just freed will never be reached. Without this knowledge, the analyser has
to issue a warning.

We refactor the code to make it clear that for empty maps the current loop
iteration is aborted.

llvm-svn: 280940
polly/lib/Analysis/ScopInfo.cpp