Enable patching of invokes

With the LLVM patch, it seems like this works.
wip