HomePhabricator

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

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

Details

Committed
NoQMay 23 2019, 6:34 PM
Differential Revision
D61814: [CFG] NFC: Remove implicit conversion from CFGTerminator to Stmt *, make it a variant class instead.
Branches
Unknown
Tags
Unknown