majnemer added inline comments.
================
Comment at: lib/CodeGen/CGBuiltin.cpp:1151-1152
+ case Builtin::BI_ReturnAddress: {
+ Value *Depth =
+ Constant::getNullValue(ConvertType(getContext().UnsignedIntTy));
+ Value *F = CGM.getIntrinsic(Intrinsic::returnaddress);
----------------
I'd just use `Builder.getInt32(0)`, this will DTRT regardless of whatever
UnsignedIntTy is.
https://reviews.llvm.org/D25540
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits