forked from OSchip/llvm-project
[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:
parent
1b7aea8ebc
commit
de2f753810
|
@ -558,6 +558,9 @@ public:
|
||||||
std::string dump() const;
|
std::string dump() const;
|
||||||
|
|
||||||
// g++/clang++ will optimize this to a simple register copy
|
// 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 *From(Stmt_impl *stmt) {
|
||||||
static Statement s{nullptr, UnreachableStmt::Create()};
|
static Statement s{nullptr, UnreachableStmt::Create()};
|
||||||
auto *result{reinterpret_cast<Statement *>(reinterpret_cast<char *>(stmt) -
|
auto *result{reinterpret_cast<Statement *>(reinterpret_cast<char *>(stmt) -
|
||||||
|
|
Loading…
Reference in New Issue