summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopDetection.cpp
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2016-06-22 16:22:00 +0000
committerTobias Grosser <tobias@grosser.es>2016-06-22 16:22:00 +0000
commit8dd653d983d75b1469322c0ba8e753d9863aa0dc (patch)
tree9520e7439e73db045ec27699a8e9403a98306e7b /polly/lib/Analysis/ScopDetection.cpp
parent9565cf581e35f5e73930ab48493943bffe4941a1 (diff)
downloadbcm5719-llvm-8dd653d983d75b1469322c0ba8e753d9863aa0dc.tar.gz
bcm5719-llvm-8dd653d983d75b1469322c0ba8e753d9863aa0dc.zip
clang-tidy: apply modern-use-nullptr fixes
Instead of using 0 or NULL use the C++11 nullptr symbol when referencing null pointers. This cleanup was suggested by Eugene Zelenko <eugene.zelenko@gmail.com> in http://reviews.llvm.org/D21488 and was split out to increase readability. llvm-svn: 273435
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index c4bb5153240..7036fe525f3 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -452,7 +452,7 @@ bool ScopDetection::isValidCallInst(CallInst &CI,
Function *CalledFunction = CI.getCalledFunction();
// Indirect calls are not supported.
- if (CalledFunction == 0)
+ if (CalledFunction == nullptr)
return false;
if (AllowModrefCall) {
OpenPOWER on IntegriCloud