Fixed crashes when compiling interpret test.

This commit is contained in:
Alexey Prokhin
2010-12-17 12:55:28 +03:00
parent f5f5c2e1f9
commit eccd26ac93
4 changed files with 15 additions and 6 deletions

View File

@@ -13,11 +13,15 @@
DVarValue::DVarValue(Type* t, VarDeclaration* vd, LLValue* llvmValue)
: DValue(t), var(vd), val(llvmValue)
{}
{
assert(isaPointer(llvmValue));
}
DVarValue::DVarValue(Type* t, LLValue* llvmValue)
: DValue(t), var(0), val(llvmValue)
{}
{
assert(isaPointer(llvmValue));
}
LLValue* DVarValue::getLVal()
{