diff options
| author | James Y Knight <jyknight@google.com> | 2019-02-05 16:42:33 +0000 |
|---|---|---|
| committer | James Y Knight <jyknight@google.com> | 2019-02-05 16:42:33 +0000 |
| commit | 679ab5f7119cceb67c0753e596292bd2192a9d1f (patch) | |
| tree | 3e9ccfb6651c3b1508cbc7b1ec802dd429a97c6f /lib/CodeGen/CGExpr.cpp | |
| parent | b896b552ddd74c9afa8a9258cf1ffd5a0acbb24a (diff) | |
| download | clang-679ab5f7119cceb67c0753e596292bd2192a9d1f.tar.gz | |
[opaque pointer types] Pass function types for runtime function calls.
Emit{Nounwind,}RuntimeCall{,OrInvoke} have been modified to take a
FunctionCallee as an argument, and CreateRuntimeFunction has been
modified to return a FunctionCallee. All callers have been updated.
Additionally, CreateBuiltinFunction is removed, as it was redundant
with CreateRuntimeFunction after some previous changes.
Differential Revision: https://reviews.llvm.org/D57668
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@353184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 77be915a84..330b876bc8 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -2915,7 +2915,7 @@ static void emitCheckHandlerCall(CodeGenFunction &CGF, } B.addAttribute(llvm::Attribute::UWTable); - llvm::Value *Fn = CGF.CGM.CreateRuntimeFunction( + llvm::FunctionCallee Fn = CGF.CGM.CreateRuntimeFunction( FnType, FnName, llvm::AttributeList::get(CGF.getLLVMContext(), llvm::AttributeList::FunctionIndex, B), |
