Skip to content

Commit 742b760

Browse files
WIP MCCAS MaskRay Fix, Change isa<MCAlignFragment> to F.getKind() == MCFragment::FT_Align
1 parent c42b77d commit 742b760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/MCCAS/MCCASObjectV1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ Error MCDataFragmentMerger::tryMerge(const MCFragment &F, unsigned Size,
18871887
bool Oversized = CurrentSize + Size > MCDataMergeThreshold;
18881888
// TODO: Try merge align fragment?
18891889
bool IsMergeableFragment =
1890-
isa<MCEncodedFragment>(F) || isa<MCAlignFragment>(F);
1890+
isa<MCEncodedFragment>(F) || F.getKind() == MCFragment::FT_Align;
18911891
// If not the same atom, flush merge candidate and return false.
18921892
if (!IsSameAtom || !IsMergeableFragment || Oversized) {
18931893
if (auto E = emitMergedFragments())

0 commit comments

Comments
 (0)