projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b99a246
)
[TI removal] Remove a unnecessary use of `TerminatorInst` from an IR
author
Chandler Carruth
<chandlerc@gmail.com>
Mon, 15 Oct 2018 09:17:38 +0000
(09:17 +0000)
committer
Chandler Carruth
<chandlerc@gmail.com>
Mon, 15 Oct 2018 09:17:38 +0000
(09:17 +0000)
header. NFC.
Part of the removal of `TerminatorInst` from the type hierarchy.
llvm-svn: 344495
llvm/include/llvm/IR/CFG.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/CFG.h
b/llvm/include/llvm/IR/CFG.h
index
fd384ef
..
4140c8a
100644
(file)
--- 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*(); }