From: Benjamin Kramer Date: Fri, 10 Apr 2015 14:49:31 +0000 (+0000) Subject: Don't rely on implicit CallSite construction. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16af28a092dbf9e87d4b0cb5075fd9bb8f06e9ee;p=clang Don't rely on implicit CallSite construction. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@234600 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index a4cfac7d48..d82c58fb7e 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -3021,7 +3021,7 @@ CodeGenFunction::EmitCallOrInvoke(llvm::Value *Callee, if (CGM.getLangOpts().ObjCAutoRefCount) AddObjCARCExceptionMetadata(Inst); - return Inst; + return llvm::CallSite(Inst); } /// \brief Store a non-aggregate value to an address to initialize it. For