diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-20 22:36:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-20 22:36:03 +0000 |
commit | 93f9d57bcdf74a3d5d1959b6136ffd26bd1750e8 (patch) | |
tree | af15338f9bec13f18ca16ff9e984bb4f82d8a910 /lib/VMCore/Function.cpp | |
parent | 172f3118d80db43aaa3e5dd59d4ff156230c5608 (diff) |
What if functions can return aggregate values ?
One small step towards multiple return value support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47406 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index cbe11f0b6c..ee386630d7 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -179,7 +179,8 @@ Function::Function(const FunctionType *Ty, LinkageTypes Linkage, ParamAttrs(0) { SymTab = new ValueSymbolTable(); - assert((getReturnType()->isFirstClassType() ||getReturnType() == Type::VoidTy) + assert((getReturnType()->isFirstClassType() ||getReturnType() == Type::VoidTy + || getReturnType()->getTypeID() == Type::StructTyID) && "LLVM functions cannot return aggregate values!"); // If the function has arguments, mark them as lazily built. |