Skip to content

Commit 50a48d8

Browse files
committed
CodeGenPGO: simplify. NFC
1 parent f229ba4 commit 50a48d8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/CodeGen/CodeGenPGO.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,7 @@ CodeGenPGO::applyFunctionAttributes(llvm::IndexedInstrProfReader *PGOReader,
954954

955955
void CodeGenPGO::emitCounterIncrement(CGBuilderTy &Builder, const Stmt *S,
956956
llvm::Value *StepV) {
957-
if (!CGM.getCodeGenOpts().hasProfileClangInstr() || !RegionCounterMap)
958-
return;
959-
if (!Builder.GetInsertBlock())
957+
if (!RegionCounterMap || !Builder.GetInsertBlock())
960958
return;
961959

962960
unsigned Counter = (*RegionCounterMap)[S];

0 commit comments

Comments
 (0)