Mercurial > projects > ldc
diff ir/irclass.cpp @ 1262:ec1d9dc1d32a
Fixed struct default initializers.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Sat, 25 Apr 2009 18:26:54 +0200 |
parents | 752bed475b75 |
children | 4fc43e173a0f |
line wrap: on
line diff
--- a/ir/irclass.cpp Wed Apr 22 14:49:49 2009 -0600 +++ b/ir/irclass.cpp Sat Apr 25 18:26:54 2009 +0200 @@ -276,9 +276,6 @@ // build the constant llvm::Constant* definit = llvm::ConstantStruct::get(constants, false); - // sanity check - assert(definit->getType() == type->irtype->getPA().get() && "class initializer type mismatch"); - return definit; }