diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-21 22:24:17 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-21 22:24:17 +0000 |
commit | 6c94b70d6e8bc166d6951a19374292055c05e8d8 (patch) | |
tree | 9da683d58c6c622edb2c6b35b9bd865d4324e7d4 /lib/VMCore/Function.cpp | |
parent | a2e7efa6d3118ed58395578e4d871b2c415dff11 (diff) |
Use isa<> instead of getTypeID() to check StructType.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47460 91177308-0d34-0410-b5e6-96231b3b80d8
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. |