Fix ouput for test diag8354

This commit is contained in:
Kai Nacke
2014-01-03 18:02:15 +01:00
parent 13e00a89ca
commit 61720bf1ba
2 changed files with 11 additions and 2 deletions

View File

@@ -508,7 +508,11 @@ llvm::Module* Module::genLLVMModule(llvm::LLVMContext& context)
if (global.params.verbose_cg)
printf("codegen: %s (%s)\n", toPrettyChars(), srcfile->toChars());
assert(!global.errors);
if (global.errors)
{
Logger::println("Aborting because of errors");
fatal();
}
// name the module
#if 1

View File

@@ -3549,9 +3549,14 @@ DValue* VectorExp::toElem(IRState* p)
STUB(Expression)
STUB(ScopeExp)
STUB(SymbolExp)
STUB(PowExp)
STUB(PowAssignExp)
DValue *PowExp::toElem(IRState * p)
{
error("must import std.math to use ^^ operator");
return new DNullValue(type, llvm::UndefValue::get(DtoType(type)));
}
llvm::Constant* Expression::toConstElem(IRState * p)
{
error("expression '%s' is not a constant", toChars());