summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2018-10-15 09:17:38 +0000
committerChandler Carruth <chandlerc@gmail.com>2018-10-15 09:17:38 +0000
commitc5283c9e6f9825897e93a6d548c679b8bb2f35d3 (patch)
treea06e44a73ea401d88406470dcc00614bd4bd6ed3
parentb99a24689b847fb46d54d2166bf4ef21662cbabd (diff)
downloadbcm5719-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.h2
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*(); }
OpenPOWER on IntegriCloud