some code generation for AnyPointer