<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 9/17/2018 8:59 AM, Mustakimur Rahman
Khandaker (Mustakim) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1537199512.local-b3852108-7f82-v1.4.2-f587b7b7@getmailspring.com">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div>If I have the FieldDecl from a MemberExpression, is there
anyway to extract the VarDecl of that FieldDecl for that
MemberExpr? Or is there no VarDecl in such case? I basically
want to extract the Address of that FieldDecl as like I can for
VarDecl using <font style="font-family:"Droid Sans
Mono", monospace, monospace, "Droid Sans
Fallback""><span style="color:rgb(121, 94, 38)">GetAddrOfLocalVar.</span></font></div>
</blockquote>
<br>
Only variables have a VarDecl. You're probably looking for
CodeGenFunction::EmitLValueForField.<br>
<br>
-Eli<br>
<pre class="moz-signature" cols="72">--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project</pre>
</body>
</html>