pcc accepted this revision.
pcc added a comment.
This revision is now accepted and ready to land.

LGTM, thanks!



================
Comment at: lib/CodeGen/CodeGenFunction.cpp:461
+                         ? EncodedAddr
+                         : Builder.CreateSExt(EncodedAddr, IntPtrTy);
+  auto *FuncAsInt = Builder.CreatePtrToInt(F, IntPtrTy, "func_addr.int");
----------------
Is this conditional necessary? I believe that `IRBuilder` will return the same 
value back if you cast to the same type.


https://reviews.llvm.org/D37597



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to