r220569 - [Modules] Free modules that failed signature verification.
dblaikie at gmail.com
Fri Oct 24 10:31:34 PDT 2014
On Fri, Oct 24, 2014 at 9:31 AM, Benjamin Kramer <benny.kra at googlemail.com>
> Author: d0k
> Date: Fri Oct 24 11:31:42 2014
> New Revision: 220569
> URL: http://llvm.org/viewvc/llvm-project?rev=220569&view=rev
> [Modules] Free modules that failed signature verification.
> The control flow and ownership is weird enough so unique_ptr doesn't help
> here :(
I've had a go at unique_ptrification in http://reviews.llvm.org/D5980 (but
yeah, I think I stumbled across this too at some point & decided it was too
hard at the time)
> Modified: cfe/trunk/lib/Serialization/ModuleManager.cpp
> --- cfe/trunk/lib/Serialization/ModuleManager.cpp (original)
> +++ cfe/trunk/lib/Serialization/ModuleManager.cpp Fri Oct 24 11:31:42 2014
> @@ -145,6 +145,7 @@ ModuleManager::addModule(StringRef FileN
> // module is *itself* up to date, but has an out-of-date importer.
> + delete New;
> return OutOfDate;
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-commits