diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-07-07 18:07:46 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-07-07 18:07:46 +0000 |
| commit | 9df9afddcf14a93ad731d8d91e47222cd08c83bd (patch) | |
| tree | 527c9a8cc619bd9922cef76ed3baaae348e9c19c | |
| parent | ef84814ea94185d586045a3684c462afdc527342 (diff) | |
| download | bcm5719-llvm-9df9afddcf14a93ad731d8d91e47222cd08c83bd.tar.gz bcm5719-llvm-9df9afddcf14a93ad731d8d91e47222cd08c83bd.zip | |
Fix regressions in these testcases:
Regression.Assembler.2002-01-24-BadSymbolTableAssert
Regression.Assembler.2002-01-24-ValueRefineAbsType
Found through the nightly tester :)
llvm-svn: 14671
| -rw-r--r-- | llvm/lib/VMCore/Value.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index 9022e914c92..a4f2669de01 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp @@ -32,7 +32,8 @@ static inline const Type *checkType(const Type *Ty) { Value::Value(const Type *ty, unsigned scid, const std::string &name) : SubclassID(scid), Ty(checkType(ty)), Name(name) { if (!isa<Constant>(this) && !isa<BasicBlock>(this)) - assert((Ty->isFirstClassType() || Ty == Type::VoidTy) && + assert((Ty->isFirstClassType() || Ty == Type::VoidTy || + isa<OpaqueType>(ty)) && "Cannot create non-first-class values except for constants!"); } |

