- MCCompactEncodedInstFragment is a subclass of MCEncodedFragment.
- Add missing kind MCFragment::FT_CVDefRange into MCEncodedFragment's classof.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/include/llvm/MC/MCFragment.h | ||
---|---|---|
139 | MCCVDefRangeFragment inherits MCEncodedFragmentWithFixups. So MCCVDefRangeFragment is kind of MCEncodedFragment. | |
220 | I don't understand why it is wrong? Thanks |
Did you audit the other uses of dyn_cast<MCEncodedFragment>?
llvm/include/llvm/MC/MCFragment.h | ||
---|---|---|
220 | MCEncodedFragmentWithFixups is a template; the specific fragment kinds only inherit from one specific instantiation of the template. |
This seems obvious given the inheritance structure.