[PATCH] D44233: Set dso_local on external rtti GVs
Reid Kleckner via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 14 10:54:45 PDT 2018
rnk accepted this revision.
rnk added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lib/CodeGen/ItaniumCXXABI.cpp:2618-2620
+ const CXXRecordDecl *RD = nullptr;
+ if (const auto *RecordTy = dyn_cast<RecordType>(Ty))
+ RD = cast<CXXRecordDecl>(RecordTy->getDecl());
----------------
This looks like `Ty->getAsCXXRecordDecl()`.
https://reviews.llvm.org/D44233
More information about the cfe-commits
mailing list