diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-04-09 06:08:46 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-04-09 06:08:46 +0000 |
commit | c620761ca54a3076b28202c97e4702c2213419bd (patch) | |
tree | 1f38d9e163a7e7be2e67c946458cfcdf7dc464d0 /llvm/lib/IR/LLVMContextImpl.cpp | |
parent | 011817a0bf35b17fafa1ba7500511ec3468250ca (diff) | |
download | bcm5719-llvm-c620761ca54a3076b28202c97e4702c2213419bd.tar.gz bcm5719-llvm-c620761ca54a3076b28202c97e4702c2213419bd.zip |
[C++11] More 'nullptr' conversion or in some cases just using a boolean check instead of comparing to nullptr.
llvm-svn: 205831
Diffstat (limited to 'llvm/lib/IR/LLVMContextImpl.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContextImpl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/IR/LLVMContextImpl.cpp b/llvm/lib/IR/LLVMContextImpl.cpp index d34f5b48410..506b0e3ac5a 100644 --- a/llvm/lib/IR/LLVMContextImpl.cpp +++ b/llvm/lib/IR/LLVMContextImpl.cpp @@ -21,7 +21,7 @@ using namespace llvm; LLVMContextImpl::LLVMContextImpl(LLVMContext &C) - : TheTrueVal(0), TheFalseVal(0), + : TheTrueVal(nullptr), TheFalseVal(nullptr), VoidTy(C, Type::VoidTyID), LabelTy(C, Type::LabelTyID), HalfTy(C, Type::HalfTyID), @@ -37,10 +37,10 @@ LLVMContextImpl::LLVMContextImpl(LLVMContext &C) Int16Ty(C, 16), Int32Ty(C, 32), Int64Ty(C, 64) { - InlineAsmDiagHandler = 0; - InlineAsmDiagContext = 0; - DiagnosticHandler = 0; - DiagnosticContext = 0; + InlineAsmDiagHandler = nullptr; + InlineAsmDiagContext = nullptr; + DiagnosticHandler = nullptr; + DiagnosticContext = nullptr; NamedStructTypesUniqueID = 0; } @@ -50,7 +50,7 @@ namespace { /// command line flag -pass-remarks. Passes whose name matches this /// regexp will emit a diagnostic when calling /// LLVMContext::emitOptimizationRemark. -static Regex *OptimizationRemarkPattern = 0; +static Regex *OptimizationRemarkPattern = nullptr; /// \brief String to hold all the values passed via -pass-remarks. Every /// instance of -pass-remarks on the command line will be concatenated |