HomePhabricator

[CFG] NFC: Remove implicit conversion from CFGTerminator to Stmt *.

Authored by dergachev.a on May 23 2019, 6:34 PM.

Description

[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