Hi Devang, > + Value *RetVal = DECL_LLVM(DECL_RESULT(FnDecl)); ... > + RetVal = BitCastToType(DECL_LLVM(DECL_RESULT(FnDecl)), > + PointerType::getUnqual(Fn->getReturnType())); Since RetVal was set to DECL_LLVM(DECL_RESULT(FnDecl)) above, you could use it here on the RHS. Ciao, Duncan.