summaryrefslogtreecommitdiff
path: root/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
commit4d5ff6d8d6af37cf224b0cef6e8810ad5ff16fc7 (patch)
tree312b242e1a241a6a8fee56d78453d0e9c5c0e993 /lib/Target/TargetLoweringObjectFile.cpp
parent4e5c5db786a3f332a48cce4df11a954cbf5544f2 (diff)
Remove unnecessary conditions as suggested by clang-tidy. NFC
Patch by: Gergely Angeli! Differential Revision: https://reviews.llvm.org/D31936 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301807 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r--lib/Target/TargetLoweringObjectFile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/TargetLoweringObjectFile.cpp b/lib/Target/TargetLoweringObjectFile.cpp
index 50272fda56d..91cc97e38b3 100644
--- a/lib/Target/TargetLoweringObjectFile.cpp
+++ b/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);