summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-07-07 18:07:46 +0000
committerChris Lattner <sabre@nondot.org>2004-07-07 18:07:46 +0000
commit9df9afddcf14a93ad731d8d91e47222cd08c83bd (patch)
tree527c9a8cc619bd9922cef76ed3baaae348e9c19c /llvm/lib
parentef84814ea94185d586045a3684c462afdc527342 (diff)
downloadbcm5719-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
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Value.cpp3
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!");
}
OpenPOWER on IntegriCloud