diff options
Diffstat (limited to 'lib/VMCore/Function.cpp')
-rw-r--r-- | lib/VMCore/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index ee386630d7..49d770d5bd 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -180,7 +180,7 @@ Function::Function(const FunctionType *Ty, LinkageTypes Linkage, SymTab = new ValueSymbolTable(); assert((getReturnType()->isFirstClassType() ||getReturnType() == Type::VoidTy - || getReturnType()->getTypeID() == Type::StructTyID) + || isa<StructType>(getReturnType())) && "LLVM functions cannot return aggregate values!"); // If the function has arguments, mark them as lazily built. |