Reverse arguments to CToPtr used in CHERI LLVM.

(Patch from David Chisnall.)