summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/SourceMgr.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-04-09 04:20:00 +0000
committerCraig Topper <craig.topper@gmail.com>2014-04-09 04:20:00 +0000
commit8d399f87af9e98b1103ba794bcda4b33ff534f65 (patch)
tree61a5a0e459a82e1ecc9fc852c3a920269bd6a59f /llvm/lib/Support/SourceMgr.cpp
parentc65a56901f6235739b6362a4f787ef609daa5ddd (diff)
downloadbcm5719-llvm-8d399f87af9e98b1103ba794bcda4b33ff534f65.tar.gz
bcm5719-llvm-8d399f87af9e98b1103ba794bcda4b33ff534f65.zip
[C++11] Replace some comparisons with 'nullptr' with simple boolean checks to reduce verbosity.
llvm-svn: 205829
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r--llvm/lib/Support/SourceMgr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp
index 4aa6ff7d31e..ca682897968 100644
--- a/llvm/lib/Support/SourceMgr.cpp
+++ b/llvm/lib/Support/SourceMgr.cpp
@@ -114,7 +114,7 @@ SourceMgr::getLineAndColumn(SMLoc Loc, int BufferID) const {
if (*Ptr == '\n') ++LineNo;
// Allocate the line number cache if it doesn't exist.
- if (LineNoCache == nullptr)
+ if (!LineNoCache)
LineNoCache = new LineNoCacheTy();
// Update the line # cache.
OpenPOWER on IntegriCloud