[llvm-bugs] [Bug 19117] MS Style inline ASM assertion failure and crash while parsing local field name
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Aug 26 14:58:36 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=19117
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Reid Kleckner <rnk at google.com> ---
(In reply to comment #4)
> + ExprResult Result = Actions.LookupInlineAsmIdentifier(SS, TemplateKWLoc,
> Id, Info,
> + IsUnevaluatedContext);
> + Result = ParsePostfixExpressionSuffix(Result);
> + if (!Result.isInvalid())
> + {
> + Info.Size =
> Actions.getASTContext().getTypeSize(Result.get()->getType()) / 8;
> + Info.Type = Info.Size;
> + }
I think this is more or less the right way to go. I added something like it in
r246088.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150826/81abe0e2/attachment.html>
More information about the llvm-bugs
mailing list