Skip to content

Commit 769f37b

Browse files
committed
Fix old versions of code
1 parent 25ee96c commit 769f37b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/disasm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ static void jl_dump_asm_internal(
928928
TheTarget->createAsmStreamer(Ctx, std::move(ustream), /*asmverbose*/ true,
929929
/*useDwarfDirectory*/ true, IP.release(),
930930
std::move(CE), std::move(MAB),
931-
/*ShowInst*/ false));
931+
/*ShowInst*/ false)
932932
#endif
933933
);
934934
Streamer->initSections(true, *STI);
@@ -1204,7 +1204,7 @@ class LineNumberPrinterHandler : public AsmPrinterHandler {
12041204
#if JL_LLVM_VERSION >= 190000
12051205
virtual void beginInstruction(const MachineInstr *MI) {
12061206
#else
1207-
virtual void beginInstruction(const MachineInstr &MI) override {
1207+
virtual void beginInstruction(const MachineInstr *MI) override {
12081208
#endif
12091209
LinePrinter.emitInstructionAnnot(MI->getDebugLoc(), Stream);
12101210
emitAndReset();

0 commit comments

Comments
 (0)