[cfe-dev] The size of a pointer to function.

Enea Zaffanella zaffanella at cs.unipr.it
Thu Feb 7 03:19:49 PST 2013


Question:
is clang forcing a pointer to function to have the same size as a 
pointer to object?

Afaict, in both cases clang ends up querying TargetInfo::PointerWidth
(unless the object is placed in a non-default address space).

What about differentiating behavior having, e.g.,
   TargetInfo::getObjectPointerWidth()
and
   TargetInfo::getFunctionPointerWidth()
?

(Same thing for PointerAlign and PtrDiffType.)

Enea.



More information about the cfe-dev mailing list