serge-sans-paille added a comment. @davidxl > reference to block addresses from outside the parent function is illegal If that's true, then my first patch was indeed better than this one. Can you point me to the relevant spec section? https://reviews.llvm.org/D33839