comparison gen/functions.cpp @ 1232:79c6c8bc866c

Removed invalid assertion.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Thu, 16 Apr 2009 20:30:30 +0200
parents 79758fd2f48a
children 1e699a4e9759
comparison
equal deleted inserted replaced
1231:212ec2d9d176 1232:79c6c8bc866c
454 454
455 // get TypeFunction* 455 // get TypeFunction*
456 Type* t = fdecl->type->toBasetype(); 456 Type* t = fdecl->type->toBasetype();
457 TypeFunction* f = (TypeFunction*)t; 457 TypeFunction* f = (TypeFunction*)t;
458 458
459 // sanity check
460 assert(fdecl == f->funcdecl && "the function type does not point to this function");
461
462 bool declareOnly = !mustDefineSymbol(fdecl); 459 bool declareOnly = !mustDefineSymbol(fdecl);
463 460
464 if (fdecl->llvmInternal == LLVMva_start) 461 if (fdecl->llvmInternal == LLVMva_start)
465 declareOnly = true; 462 declareOnly = true;
466 463