diff options
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
-rw-r--r-- | llvm/lib/IR/BasicBlock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/BasicBlock.cpp b/llvm/lib/IR/BasicBlock.cpp index e6a4585..70ae3c3 100644 --- a/llvm/lib/IR/BasicBlock.cpp +++ b/llvm/lib/IR/BasicBlock.cpp @@ -117,6 +117,10 @@ const Module *BasicBlock::getModule() const { return getParent()->getParent(); } +Module *BasicBlock::getModule() { + return getParent()->getParent(); +} + TerminatorInst *BasicBlock::getTerminator() { if (InstList.empty()) return nullptr; return dyn_cast<TerminatorInst>(&InstList.back()); |