diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-03-29 22:00:54 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-03-29 22:00:54 +0000 |
| commit | eefe941619348ec3388bc72ff85b1b1e46581b2d (patch) | |
| tree | 23298d9802dfc2169a266ddc3397ae6c279b88d9 /polly/lib/Analysis/ScopGraphPrinter.cpp | |
| parent | 2104100454b0b89fe5f878015ffafc5f0e8d1eb2 (diff) | |
| download | bcm5719-llvm-eefe941619348ec3388bc72ff85b1b1e46581b2d.tar.gz bcm5719-llvm-eefe941619348ec3388bc72ff85b1b1e46581b2d.zip | |
Avoid nullptr dereference in the ScopGraphPrinter
Reported-by: http://buildd-clang.debian.net/scan-build
llvm-svn: 233505
Diffstat (limited to 'polly/lib/Analysis/ScopGraphPrinter.cpp')
| -rw-r--r-- | polly/lib/Analysis/ScopGraphPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopGraphPrinter.cpp b/polly/lib/Analysis/ScopGraphPrinter.cpp index 740e12220ea..ca1013341c8 100644 --- a/polly/lib/Analysis/ScopGraphPrinter.cpp +++ b/polly/lib/Analysis/ScopGraphPrinter.cpp @@ -83,7 +83,7 @@ struct DOTGraphTraits<ScopDetection *> : public DOTGraphTraits<RegionNode *> { else break; - if (R->getEntry() == destBB && R->contains(srcBB)) + if (R && R->getEntry() == destBB && R->contains(srcBB)) return "constraint=false"; return ""; |

