diff options
author | Kazu Hirata <kazu@google.com> | 2021-12-29 08:34:20 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-12-29 08:34:20 -0800 |
commit | 298367ee6e36eeb1b193ad9fa92082c2ef2345a3 (patch) | |
tree | 402515be8a0d7332737ca3b673974a5915d1a52b /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 1b329fe28206287e8a496b66cc68f4c1838a0230 (diff) | |
download | llvm-298367ee6e36eeb1b193ad9fa92082c2ef2345a3.zip llvm-298367ee6e36eeb1b193ad9fa92082c2ef2345a3.tar.gz llvm-298367ee6e36eeb1b193ad9fa92082c2ef2345a3.tar.bz2 |
[clang] Use nullptr instead of 0 or NULL (NFC)
Identified with modernize-use-nullptr.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index e6adec6..4814962 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -1595,9 +1595,9 @@ void CodeGenFunction::EmitBranchToCounterBlock( if (!InstrumentRegions || !isInstrumentedCondition(Cond)) return EmitBranchOnBoolExpr(Cond, TrueBlock, FalseBlock, TrueCount, LH); - llvm::BasicBlock *ThenBlock = NULL; - llvm::BasicBlock *ElseBlock = NULL; - llvm::BasicBlock *NextBlock = NULL; + llvm::BasicBlock *ThenBlock = nullptr; + llvm::BasicBlock *ElseBlock = nullptr; + llvm::BasicBlock *NextBlock = nullptr; // Create the block we'll use to increment the appropriate counter. llvm::BasicBlock *CounterIncrBlock = createBasicBlock("lop.rhscnt"); |