diff options
| -rw-r--r-- | llvm/include/llvm/IR/BasicBlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/BasicBlock.h b/llvm/include/llvm/IR/BasicBlock.h index ae40e710e1e..41dc9a0ae18 100644 --- a/llvm/include/llvm/IR/BasicBlock.h +++ b/llvm/include/llvm/IR/BasicBlock.h @@ -111,7 +111,7 @@ public: /// \brief Returns the terminator instruction if the block is well formed or /// null if the block is not well formed. - TerminatorInst *getTerminator(); + TerminatorInst *getTerminator() LLVM_READONLY; const TerminatorInst *getTerminator() const { return const_cast<BasicBlock *>(this)->getTerminator(); } |

