diff options
author | Artem Dergachev <artem.dergachev@gmail.com> | 2019-05-24 01:34:22 +0000 |
---|---|---|
committer | Artem Dergachev <artem.dergachev@gmail.com> | 2019-05-24 01:34:22 +0000 |
commit | 4e53032d9bdb2b24e465aa934e083fc507b58a61 (patch) | |
tree | 75f07a0b6d533de656e7ec2fa16406b4444b3bda /clang/lib/Analysis/ProgramPoint.cpp | |
parent | b7a78c7dff18485e5ac85aa8c902571da4b06a33 (diff) | |
download | bcm5719-llvm-4e53032d9bdb2b24e465aa934e083fc507b58a61.tar.gz bcm5719-llvm-4e53032d9bdb2b24e465aa934e083fc507b58a61.zip |
[CFG] NFC: Remove implicit conversion from CFGTerminator to Stmt *.
Turn it into a variant class instead. This conversion does indeed save some code
but there's a plan to add support for more kinds of terminators that aren't
necessarily based on statements, and with those in mind it becomes more and more
confusing to have CFGTerminators implicitly convertible to a Stmt *.
Differential Revision: https://reviews.llvm.org/D61814
llvm-svn: 361586
Diffstat (limited to 'clang/lib/Analysis/ProgramPoint.cpp')
-rw-r--r-- | clang/lib/Analysis/ProgramPoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/ProgramPoint.cpp b/clang/lib/Analysis/ProgramPoint.cpp index 828388716ea..697d2e57ced 100644 --- a/clang/lib/Analysis/ProgramPoint.cpp +++ b/clang/lib/Analysis/ProgramPoint.cpp @@ -144,7 +144,7 @@ void ProgramPoint::print(StringRef CR, llvm::raw_ostream &Out) const { Out << "Edge: (B" << E.getSrc()->getBlockID() << ", B" << E.getDst()->getBlockID() << ')'; - if (const Stmt *T = E.getSrc()->getTerminator()) { + if (const Stmt *T = E.getSrc()->getTerminatorStmt()) { SourceLocation SLoc = T->getBeginLoc(); Out << "\\|Terminator: "; |