summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetLoweringObjectFile.cpp
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2017-05-01 16:18:42 +0000
committerGabor Horvath <xazax.hun@gmail.com>2017-05-01 16:18:42 +0000
commit43b72d538f9f76afd38a59423e587083801125e8 (patch)
treeec031c25421027a201c3dbcdb6a2058554fdf13d /llvm/lib/Target/TargetLoweringObjectFile.cpp
parent6b1b630a984bbb3c5f1fcc01d02770d98ebb6d6a (diff)
downloadbcm5719-llvm-43b72d538f9f76afd38a59423e587083801125e8.tar.gz
bcm5719-llvm-43b72d538f9f76afd38a59423e587083801125e8.zip
Remove unnecessary conditions as suggested by clang-tidy. NFC
Patch by: Gergely Angeli! Differential Revision: https://reviews.llvm.org/D31936 llvm-svn: 301807
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--llvm/lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp
index 50272fda56d..91cc97e38b3 100644
--- a/llvm/lib/Target/TargetLoweringObjectFile.cpp
+++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp
@@ -44,7 +44,7 @@ void TargetLoweringObjectFile::Initialize(MCContext &ctx,
const TargetMachine &TM) {
Ctx = &ctx;
// `Initialize` can be called more than once.
- if (Mang != nullptr) delete Mang;
+ delete Mang;
Mang = new Mangler();
InitMCObjectFileInfo(TM.getTargetTriple(), TM.isPositionIndependent(),
TM.getCodeModel(), *Ctx);
OpenPOWER on IntegriCloud