<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/13/2018 2:26 PM, Mustakimur Rahman
Khandaker (Mustakim) via cfe-dev wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1536873021.local-d697679c-88c7-v1.4.2-f587b7b7@getmailspring.com">
<div>Now, in the <em><font style="font-family:"Droid Sans
Mono", monospace, monospace, "Droid Sans
Fallback"">CGCalleeInfo, </font></em><font
style="font-family:"Droid Sans Mono", monospace,
monospace, "Droid Sans Fallback"">compiler set the
Decl for the Callee.</font> What I have discovered is that <em><font
style="font-family:"Droid Sans Mono", monospace,
monospace, "Droid Sans Fallback"">Decl
*Expr::getReferencedDeclOfCallee()</font></em><em> </em>returns
nullptr and for that call callee set to Decl as Null from <font
style="font-family:"Droid Sans Mono", monospace,
monospace, "Droid Sans Fallback"">CGCallee </font><font
style="font-family:"Droid Sans Mono", monospace,
monospace, "Droid Sans Fallback""><span
style="color:rgb(121, 94, 38)">CodeGenFunction::EmitCallee</span></font><font
style="font-family:"Droid Sans Mono", monospace,
monospace, "Droid Sans Fallback"">(</font><font
style="font-family:"Droid Sans Mono", monospace,
monospace, "Droid Sans Fallback""><span
style="color:rgb(0, 0, 255)">const</span></font><font
style="font-family:"Droid Sans Mono", monospace,
monospace, "Droid Sans Fallback""> Expr *E)</font>.
I beleive this is not an expected behavior because it is
declared as MathFunc and it should be set as that.</div>
<br>
<div>I would like to understand why it kept like this?</div>
</blockquote>
<br>
It mostly doesn't matter because the callers of
getReferencedDeclOfCallee/getCalleeDecl generally don't care about
declarations that aren't a FunctionDecl, and code generally doesn't
call explicit casts of function pointers.<br>
<br>
What are you trying to do?<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>