diff options
author | Devang Patel <dpatel@apple.com> | 2008-02-21 02:14:01 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2008-02-21 02:14:01 +0000 |
commit | ad582fc34b85064700ab35660d4692815779b56c (patch) | |
tree | f46c5bdfa582081f03849f75f363a72273612342 /llvm/lib/VMCore/Value.cpp | |
parent | 1f00b535e13befad8e07de33f5abecb009958e38 (diff) | |
download | bcm5719-llvm-ad582fc34b85064700ab35660d4692815779b56c.tar.gz bcm5719-llvm-ad582fc34b85064700ab35660d4692815779b56c.zip |
Let invoke return aggregate value.
llvm-svn: 47425
Diffstat (limited to 'llvm/lib/VMCore/Value.cpp')
-rw-r--r-- | llvm/lib/VMCore/Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index 440e0a63fdb..9f8f56e1a74 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp @@ -34,7 +34,7 @@ static inline const Type *checkType(const Type *Ty) { Value::Value(const Type *ty, unsigned scid) : SubclassID(scid), SubclassData(0), Ty(checkType(ty)), UseList(0), Name(0) { - if (isa<CallInst>(this)) + if (isa<CallInst>(this) || isa<InvokeInst>(this)) assert((Ty->isFirstClassType() || Ty == Type::VoidTy || isa<OpaqueType>(ty) || Ty->getTypeID() == Type::StructTyID) && "invalid CallInst type!"); |