[llvm-commits] [llvm] r63834 - /llvm/trunk/tools/gold/gold-plugin.cpp

Rafael Espindola espindola at google.com
Thu Feb 5 00:14:14 PST 2009


2009/2/5 Nick Lewycky <nicholas at mxc.ca>:
> Author: nicholas
> Date: Wed Feb  4 23:36:01 2009
> New Revision: 63834
>
> URL: http://llvm.org/viewvc/llvm-project?rev=63834&view=rev
> Log:
> It's not obvious, but lto_module_create_from_memory doesn't need to use the
> buffer after it creates the Module. Thus, we don't need to store this pointer
> in claimed_file.

Don't you need to free it?

>   lto_codegen_dispose(cg);
> -  for (std::list<claimed_file>::iterator I = Modules.begin(),
> -       E = Modules.end(); I != E; ++I) {
> -    free(I->buf);
> -  }

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047



More information about the llvm-commits mailing list