Fixed a crash when calling a function by an alias

This commit is contained in:
Alexey Prokhin
2012-04-21 18:09:32 +04:00
parent 21a926c936
commit 8364ad4675

View File

@@ -234,6 +234,7 @@ DValue* VarExp::toElem(IRState* p)
{
Logger::println("FuncDeclaration");
LLValue* func = 0;
fdecl = fdecl->toAliasFunc();
if (fdecl->llvmInternal == LLVMinline_asm) {
error("special ldc inline asm is not a normal function");
fatal();