Skip to content

Commit 0209020

Browse files
author
git apple-llvm automerger
committed
Merge commit '57e8f0b05545' from llvm.org/master into apple/master
2 parents caa11c2 + 57e8f0b commit 0209020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/GVNHoist.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ class GVNHoist {
539539

540540
// Check for unsafe hoistings due to side effects.
541541
if (K == InsKind::Store) {
542-
if (hasEHOrLoadsOnPath(NewPt, dyn_cast<MemoryDef>(U), NBBsOnAllPaths))
542+
if (hasEHOrLoadsOnPath(NewPt, cast<MemoryDef>(U), NBBsOnAllPaths))
543543
return false;
544544
} else if (hasEHOnPath(NewBB, OldBB, NBBsOnAllPaths))
545545
return false;

0 commit comments

Comments
 (0)