Skip to content

Commit bce84a4

Browse files
authored
Apply suggestions from code review
1 parent d2c99a5 commit bce84a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ static void buildPartialInvariantUnswitchConditionalBranch(
387387
Direction ? &NormalSucc : &UnswitchedSucc, ProfData);
388388
if (!ProfData)
389389
setExplicitlyUnknownBranchWeightsIfProfiled(
390-
*BR, *BR->getParent()->getParent(), DEBUG_TYPE);
390+
*BR, *BR->getFunction(), DEBUG_TYPE);
391391
}
392392

393393
/// Rewrite the PHI nodes in an unswitched loop exit basic block.

0 commit comments

Comments
 (0)