[LLVMdev] Got a "corrupted double-linked list" error?
zhunan
zhunansjtu at gmail.com
Mon Jul 20 06:16:02 PDT 2009
Hi,all
Recently,I write some code to implement the following funtions:
I make use the codes of "llvm-dis" to disassemble the bitcode file and
do some change on it,after that ,"my llvm-as" assembles the changed file
to generate a bitcode file.
But I got a "corrupted double-linked list" error when "my llvm-as"
works,however,when I do nothing on the disassembled bitcode
file,everything is OK,
After debugged,I found the error line is
"MemoryBuffer *F = MemoryBuffer::getFileOrSTDIN(Filename.c_str(),
&ErrorStr);"
in the "Module *llvm::ParseAssemblyFile(const std::string &Filename,
SMDiagnostic &Err,LLVMContext &Context)" function,
I don't know the reason,anyone once got the similar trouble?
Thanks
More information about the llvm-dev
mailing list