diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-08-21 21:35:28 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-08-21 21:35:28 +0000 |
commit | d583b19569183563aa5c4f8d15309edad09c8113 (patch) | |
tree | 232d43940bc5a5604a4d13e7af19cb8fe84555cc /llvm/lib/IR/Function.cpp | |
parent | ff9639d6b700d8ff05994329b65e55a7842f44ba (diff) | |
download | bcm5719-llvm-d583b19569183563aa5c4f8d15309edad09c8113.tar.gz bcm5719-llvm-d583b19569183563aa5c4f8d15309edad09c8113.zip |
[opaque pointer types] Push the passing of value types up from Function/GlobalVariable to GlobalObject
(coming next, pushing this up into GlobalValue, so it can store the
value type directly)
llvm-svn: 245742
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index b50ad1262c6..7d150bfe89f 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -248,7 +248,7 @@ void Function::eraseFromParent() { Function::Function(FunctionType *Ty, LinkageTypes Linkage, const Twine &name, Module *ParentModule) - : GlobalObject(PointerType::getUnqual(Ty), Value::FunctionVal, + : GlobalObject(Ty, Value::FunctionVal, OperandTraits<Function>::op_begin(this), 0, Linkage, name), Ty(Ty) { assert(FunctionType::isValidReturnType(getReturnType()) && |