[llvm-commits] CVS: llvm/lib/VMCore/Value.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Jul 7 13:09:05 PDT 2004
Changes in directory llvm/lib/VMCore:
Value.cpp updated: 1.45 -> 1.46
---
Log message:
Fix regressions in these testcases:
Regression.Assembler.2002-01-24-BadSymbolTableAssert
Regression.Assembler.2002-01-24-ValueRefineAbsType
Found through the nightly tester :)
---
Diffs of the changes: (+2 -1)
Index: llvm/lib/VMCore/Value.cpp
diff -u llvm/lib/VMCore/Value.cpp:1.45 llvm/lib/VMCore/Value.cpp:1.46
--- llvm/lib/VMCore/Value.cpp:1.45 Tue Jul 6 12:44:17 2004
+++ llvm/lib/VMCore/Value.cpp Wed Jul 7 13:07:46 2004
@@ -32,7 +32,8 @@
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!");
}
More information about the llvm-commits
mailing list