[llvm-dev] Getting a BasicBlock address

Krzysztof Parzyszek via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 5 11:06:41 PST 2018

On 12/5/2018 9:14 AM, David Greene via llvm-dev wrote:
> In particular, what happens if the BasicBlock is optimized
> away (merged with another block, etc.)?

Taking a block's address is equivalent to taking the address of the 
label that starts it. When a block is marked as "address-taken" the 
label sticks around even after the block itself has been removed.


Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

More information about the llvm-dev mailing list