[polly] r233505 - Avoid nullptr dereference in the ScopGraphPrinter
Tobias Grosser
tobias at grosser.es
Sun Mar 29 15:00:54 PDT 2015
Author: grosser
Date: Sun Mar 29 17:00:54 2015
New Revision: 233505
URL: http://llvm.org/viewvc/llvm-project?rev=233505&view=rev
Log:
Avoid nullptr dereference in the ScopGraphPrinter
Reported-by: http://buildd-clang.debian.net/scan-build
Modified:
polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
Modified: polly/trunk/lib/Analysis/ScopGraphPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopGraphPrinter.cpp?rev=233505&r1=233504&r2=233505&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopGraphPrinter.cpp (original)
+++ polly/trunk/lib/Analysis/ScopGraphPrinter.cpp Sun Mar 29 17:00:54 2015
@@ -83,7 +83,7 @@ struct DOTGraphTraits<ScopDetection *> :
else
break;
- if (R->getEntry() == destBB && R->contains(srcBB))
+ if (R && R->getEntry() == destBB && R->contains(srcBB))
return "constraint=false";
return "";
More information about the llvm-commits
mailing list