This is an archive of the discontinued LLVM Phabricator instance.

[X86][Ms-InlineAsm] Extend MS Dot operator to accept "this" + struct/class pointers aliases
ClosedPublic

Authored by coby on Aug 8 2017, 12:39 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

coby created this revision.Aug 8 2017, 12:39 AM
rnk accepted this revision.Aug 8 2017, 3:15 PM

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>().

This revision is now accepted and ready to land.Aug 8 2017, 3:15 PM
coby added inline comments.Aug 9 2017, 4:50 AM
lib/Sema/SemaStmtAsm.cpp
702–705 ↗(On Diff #110145)

Indeed. thx for pointing it out!

This revision was automatically updated to reflect the committed changes.