aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTOBackend.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2022-01-14 16:31:14 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2022-01-14 16:31:27 +0000
commit0e65d5021aa0aab4fbf67ce0a91abf4467b356a9 (patch)
tree55a9a8e23b445ecaf4582fafd242bee70b4b004e /llvm/lib/LTO/LTOBackend.cpp
parente11e973e68f89224c8aaddf38ea7859709f00306 (diff)
downloadllvm-0e65d5021aa0aab4fbf67ce0a91abf4467b356a9.zip
llvm-0e65d5021aa0aab4fbf67ce0a91abf4467b356a9.tar.gz
llvm-0e65d5021aa0aab4fbf67ce0a91abf4467b356a9.tar.bz2
[LTO] runNewPMPasses - remove check for TM != nullptr as we already dereference the pointer directly later on in the same code
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r--llvm/lib/LTO/LTOBackend.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp
index 308c602..7694c98 100644
--- a/llvm/lib/LTO/LTOBackend.cpp
+++ b/llvm/lib/LTO/LTOBackend.cpp
@@ -229,8 +229,7 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM,
PGOOpt = PGOOptions("", "", "", PGOOptions::NoAction,
PGOOptions::NoCSAction, true);
}
- if (TM)
- TM->setPGOOption(PGOOpt);
+ TM->setPGOOption(PGOOpt);
LoopAnalysisManager LAM;
FunctionAnalysisManager FAM;