Visual C++ has an intrinsic function called _AddressOfReturnAddress
which returns the address of the current function's return address on the stack.
Note that this is not the same as _ReturnAddress
, which only returns a copy of the return address.
Is there any equivalent for _AddressOfReturnAddress
in Clang/LLVM?