diff options
| author | Vedant Kumar <vsk@apple.com> | 2015-09-30 23:52:54 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2015-09-30 23:52:54 +0000 |
| commit | 552c0111f1ad12ed6a8442fbfc3541f1f503cbc6 (patch) | |
| tree | 3e18df8aa32914003354e7d3daf940d164af8448 /compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cc | |
| parent | 3830d68bc19890df83961799c644de96346b6459 (diff) | |
| download | bcm5719-llvm-552c0111f1ad12ed6a8442fbfc3541f1f503cbc6.tar.gz bcm5719-llvm-552c0111f1ad12ed6a8442fbfc3541f1f503cbc6.zip | |
[sanitizer_common] Apply modernize-use-nullptr, other minor fixes
- Trim spaces.
- Use nullptr in place of 0 for pointer variables.
- Use '!p' in place of 'p == 0' for null pointer checks.
Patch by Eugene Zelenko!
Differential Revision: http://reviews.llvm.org/D13310
llvm-svn: 248964
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cc')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cc b/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cc index 5890b54b933..bd57a403bdc 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_deadlock_detector1.cc @@ -71,7 +71,7 @@ DD::DD(const DDFlags *flags) } DDPhysicalThread* DD::CreatePhysicalThread() { - return 0; + return nullptr; } void DD::DestroyPhysicalThread(DDPhysicalThread *pt) { @@ -181,10 +181,10 @@ void DD::MutexDestroy(DDCallback *cb, DDReport *DD::GetReport(DDCallback *cb) { if (!cb->lt->report_pending) - return 0; + return nullptr; cb->lt->report_pending = false; return &cb->lt->rep; } -} // namespace __sanitizer -#endif // #if SANITIZER_DEADLOCK_DETECTOR_VERSION == 1 +} // namespace __sanitizer +#endif // #if SANITIZER_DEADLOCK_DETECTOR_VERSION == 1 |

