Skip to content

Commit 073d30a

Browse files
committed
LLVMInstructionList: Add missing const qualifiers
1 parent 411d5b4 commit 073d30a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/engine/internal/llvm/llvminstructionlist.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77

88
using namespace libscratchcpp;
99

10-
LLVMInstruction *LLVMInstructionList::first()
10+
LLVMInstruction *LLVMInstructionList::first() const
1111
{
1212
return m_first.get();
1313
}
1414

15-
LLVMInstruction *LLVMInstructionList::last()
15+
LLVMInstruction *LLVMInstructionList::last() const
1616
{
1717
return m_last.get();
1818
}

src/engine/internal/llvm/llvminstructionlist.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class LLVMInstructionList
1515
LLVMInstructionList() = default;
1616
LLVMInstructionList(const LLVMInstructionList &) = delete;
1717

18-
LLVMInstruction *first();
19-
LLVMInstruction *last();
18+
LLVMInstruction *first() const;
19+
LLVMInstruction *last() const;
2020

2121
void addInstruction(std::shared_ptr<LLVMInstruction> ins);
2222

0 commit comments

Comments
 (0)