[LLVMdev] A question about the BasicBlock::hasAddressTaken() implementation.

Paul Vario paul.paul.mit at gmail.com
Fri Jun 13 14:58:06 PDT 2014


Hi Fellows,

    BasicBlock::hasAddressTaken has the following implementation:

              bool hasAddressTaken() const { return
getSubclassDataFromValue() != 0; }

     and then, in llvm/IR/Value.h, we have

               unsigned short getSubclassDataFromValue() const { return
SubclassData; }

     But it's not clear to me at all, how is (SubclassData != 0) equivalent
to the basic block has its address taken? What's the logic behind all
these? Thanks so  much.


Best Regards,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140613/1b2cf521/attachment.html>


More information about the llvm-dev mailing list