[flang] add comment per Steve's request in review

Original-commit: flang-compiler/f18@c3a5d6a15e
Reviewed-on: https://github.com/flang-compiler/f18/pull/354
This commit is contained in:
Eric Schweitz 2019-03-27 10:54:14 -07:00
parent 1b7aea8ebc
commit de2f753810

View file

@ -558,6 +558,9 @@ public:
std::string dump() const;
// g++/clang++ will optimize this to a simple register copy
// Every Stmt_impl is wrapped in and the first data member of a Statement;
// therefore, a pointer to one or the other is bitwise identical.
// This checks that this assumption is, in fact, true.
static Statement *From(Stmt_impl *stmt) {
static Statement s{nullptr, UnreachableStmt::Create()};
auto *result{reinterpret_cast<Statement *>(reinterpret_cast<char *>(stmt) -