diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2018-10-15 09:17:38 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2018-10-15 09:17:38 +0000 |
| commit | c5283c9e6f9825897e93a6d548c679b8bb2f35d3 (patch) | |
| tree | a06e44a73ea401d88406470dcc00614bd4bd6ed3 | |
| parent | b99a24689b847fb46d54d2166bf4ef21662cbabd (diff) | |
| download | bcm5719-llvm-c5283c9e6f9825897e93a6d548c679b8bb2f35d3.tar.gz bcm5719-llvm-c5283c9e6f9825897e93a6d548c679b8bb2f35d3.zip | |
[TI removal] Remove a unnecessary use of `TerminatorInst` from an IR
header. NFC.
Part of the removal of `TerminatorInst` from the type hierarchy.
llvm-svn: 344495
| -rw-r--r-- | llvm/include/llvm/IR/CFG.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/IR/CFG.h b/llvm/include/llvm/IR/CFG.h index fd384ef4949..4140c8a212e 100644 --- a/llvm/include/llvm/IR/CFG.h +++ b/llvm/include/llvm/IR/CFG.h @@ -73,7 +73,7 @@ public: inline reference operator*() const { assert(!It.atEnd() && "pred_iterator out of range!"); - return cast<TerminatorInst>(*It)->getParent(); + return cast<Instruction>(*It)->getParent(); } inline pointer *operator->() const { return &operator*(); } |

