MS InlineAsm Dot operator accepts "Bases" such as "this" (cpp) and class/struct pointer typedef.
This patch enhance its implementation with this behavior.
Details
Details
- Reviewers
rnk echristo m_zuckerman myatsina - Commits
- rG69eb696112e9: [X86][Ms-InlineAsm] Extend MS Dot operator to accept "this" + struct/class…
rC310472: [X86][Ms-InlineAsm] Extend MS Dot operator to accept "this" + struct/class…
rL310472: [X86][Ms-InlineAsm] Extend MS Dot operator to accept "this" + struct/class…
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm
lib/Sema/SemaStmtAsm.cpp | ||
---|---|---|
702–705 ↗ | (On Diff #110145) | This would probably be simpler as: QualType Ty = TD->getUnderlyingType(); if (const auto *PT = Ty->getAs<PointerType>()) Ty = PT->getPointeeType(); RT = Ty->getAsRecordType(); ... to avoid repeating getAs<RecordType>(). |
lib/Sema/SemaStmtAsm.cpp | ||
---|---|---|
702–705 ↗ | (On Diff #110145) | Indeed. thx for pointing it out! |