[cfe-dev] CGCalleeInfo set Decl to Null while using as dereferenced callee

Friedman, Eli via cfe-dev cfe-dev at lists.llvm.org
Mon Sep 17 12:08:15 PDT 2018


On 9/17/2018 8:59 AM, Mustakimur Rahman Khandaker (Mustakim) wrote:
> 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 GetAddrOfLocalVar.

Only variables have a VarDecl.  You're probably looking for 
CodeGenFunction::EmitLValueForField.

-Eli

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20180917/a0de169e/attachment.html>


More information about the cfe-dev mailing list