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/TargetLoweringBase.cpp | |
parent | c62214da3de04f702e29e4ba4772c9463e2829ca (diff) | |
download | llvm-fadf25068e32b44b010e6e03c6ab93bec41eae82.zip llvm-fadf25068e32b44b010e6e03c6ab93bec41eae82.tar.gz llvm-fadf25068e32b44b010e6e03c6ab93bec41eae82.tar.bz2 |
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/TargetLoweringBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index 01b62844..1fb67bf 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -1587,8 +1587,8 @@ Value *TargetLoweringBase::getSafeStackPointerLocation(IRBuilder<> &IRB) const { // thread's unsafe stack pointer. Module *M = IRB.GetInsertBlock()->getParent()->getParent(); Type *StackPtrTy = Type::getInt8PtrTy(M->getContext()); - FunctionCallee Fn = M->getOrInsertFunction("__safestack_pointer_address", - StackPtrTy->getPointerTo(0)); + Value *Fn = M->getOrInsertFunction("__safestack_pointer_address", + StackPtrTy->getPointerTo(0)); return IRB.CreateCall(Fn); } |