[LLVMbugs] [Bug 579] NEW: Exception: Cannot make constant refer to non-constant!

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jun 12 15:49:32 PDT 2005


http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=579

           Summary: Exception: Cannot make constant refer to non-constant!
           Product: tools
           Version: 1.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gccld
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: bryan.turner at pobox.com


Using LLVM 1.5 release.  Still trying to get the random program generator up &
running.  Found this one along the way (compiled using llvm-gcc, no additional
flags needed).

gccld: Constants.cpp:558: virtual void
llvm::ConstantExpr::replaceUsesOfWithOnConstant( llvm::Value*, llvm::Value*,
bool ): Assertion 'isa<Constant>(ToV) && "Cannot make constant refer to
non-constant!"' failed.

/*
// --- RANDOMLY GENERATED PROGRAM ---
// Program Generator by Bryan Turner (bryan.turner at pobox.com)
*/

unsigned long context = 0;
short g_40507551 = 0x793E;

void DumbHash( unsigned char *value, unsigned int len )
{
	while ( len-- )
	{
		context += *(value++);
	}
	context ^= 0xA50F5AF0;
}


/* ------------------------------------------ */
int main(  )
{
	DumbHash( (unsigned char *)&g_40507551, 2 );
}



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the llvm-bugs mailing list