diff options
| author | James Y Knight <jyknight@google.com> | 2019-01-31 21:51:58 +0000 |
|---|---|---|
| committer | James Y Knight <jyknight@google.com> | 2019-01-31 21:51:58 +0000 |
| commit | fadf25068e32b44b010e6e03c6ab93bec41eae82 (patch) | |
| tree | 9b22878f495e0b75d9e86cd01bcf199308dc9234 /llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp | |
| parent | c62214da3de04f702e29e4ba4772c9463e2829ca (diff) | |
| download | bcm5719-llvm-fadf25068e32b44b010e6e03c6ab93bec41eae82.tar.gz bcm5719-llvm-fadf25068e32b44b010e6e03c6ab93bec41eae82.zip | |
Revert "[opaque pointer types] Add a FunctionCallee wrapper type, and use it."
This reverts commit f47d6b38c7a61d50db4566b02719de05492dcef1 (r352791).
Seems to run into compilation failures with GCC (but not clang, where
I tested it). Reverting while I investigate.
llvm-svn: 352800
Diffstat (limited to 'llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp b/llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp index 182c3924a70..915b2c56d49 100644 --- a/llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp @@ -64,9 +64,9 @@ static bool lowerObjCCall(Function &F, const char *NewFn, // If we haven't already looked up this function, check to see if the // program already contains a function with this name. Module *M = F.getParent(); - FunctionCallee FCache = M->getOrInsertFunction(NewFn, F.getFunctionType()); + Constant* FCache = M->getOrInsertFunction(NewFn, F.getFunctionType()); - if (Function *Fn = dyn_cast<Function>(FCache.getCallee())) { + if (Function* Fn = dyn_cast<Function>(FCache)) { Fn->setLinkage(F.getLinkage()); if (setNonLazyBind && !Fn->isWeakForLinker()) { // If we have Native ARC, set nonlazybind attribute for these APIs for |

