Skip to content

Commit 98c0a83

Browse files
WIP MCCAS MaskRay Fix, fixed bug with no more classof function in MCEncodedFragment
1 parent b4830cb commit 98c0a83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/MCCAS/MCCASObjectV1.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,8 @@ MCAlignFragmentRef::create(MCCASBuilder &MB, const MCAlignFragment &F,
15571557
}
15581558

15591559
Expected<uint64_t> MCAlignFragmentRef::materialize(MCCASReader &Reader,
1560-
raw_ostream *Stream) const {
1560+
raw_ostream *Stream) const
1561+
{
15611562
uint64_t Count;
15621563
auto Remaining = getData();
15631564
auto Endian = Reader.getEndian();
@@ -1887,7 +1888,7 @@ Error MCDataFragmentMerger::tryMerge(const MCFragment &F, unsigned Size,
18871888
bool Oversized = CurrentSize + Size > MCDataMergeThreshold;
18881889
// TODO: Try merge align fragment?
18891890
bool IsMergeableFragment =
1890-
isa<MCEncodedFragment>(F) || F.getKind() == MCFragment::FT_Align;
1891+
F.isEncoded() || F.getKind() == MCFragment::FT_Align;
18911892
// If not the same atom, flush merge candidate and return false.
18921893
if (!IsSameAtom || !IsMergeableFragment || Oversized) {
18931894
if (auto E = emitMergedFragments())

0 commit comments

Comments
 (0)