diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-04-15 04:59:12 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-04-15 04:59:12 +0000 |
| commit | 9f008867c063919762189487e78bcb7ace2b256d (patch) | |
| tree | a768a65bc7a91c59f5d98aadbb7d827fdeb30ccd /llvm/lib/Analysis/LibCallSemantics.cpp | |
| parent | 4a7a0509102a0af018011d2708bf321fa6984596 (diff) | |
| download | bcm5719-llvm-9f008867c063919762189487e78bcb7ace2b256d.tar.gz bcm5719-llvm-9f008867c063919762189487e78bcb7ace2b256d.zip | |
[C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr.
llvm-svn: 206243
Diffstat (limited to 'llvm/lib/Analysis/LibCallSemantics.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LibCallSemantics.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LibCallSemantics.cpp b/llvm/lib/Analysis/LibCallSemantics.cpp index 0592ccb26c1..7d4e254a111 100644 --- a/llvm/lib/Analysis/LibCallSemantics.cpp +++ b/llvm/lib/Analysis/LibCallSemantics.cpp @@ -46,11 +46,11 @@ LibCallInfo::getFunctionInfo(const Function *F) const { /// If this is the first time we are querying for this info, lazily construct /// the StringMap to index it. - if (Map == 0) { + if (!Map) { Impl = Map = new StringMap<const LibCallFunctionInfo*>(); const LibCallFunctionInfo *Array = getFunctionInfoArray(); - if (Array == 0) return 0; + if (!Array) return nullptr; // We now have the array of entries. Populate the StringMap. for (unsigned i = 0; Array[i].Name; ++i) |

