diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-24 16:31:42 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2014-10-24 16:31:42 +0000 |
commit | 5e3a421bfcb891fc7821daa501e30c113fb1bf16 (patch) | |
tree | 721cccbf5ca57dee1e5eb80226c6bf5757c6f436 /clang/lib/Serialization/ModuleManager.cpp | |
parent | e2e25da4b6dafb2a4bcc1518a1b440decc4ace48 (diff) | |
download | bcm5719-llvm-5e3a421bfcb891fc7821daa501e30c113fb1bf16.tar.gz bcm5719-llvm-5e3a421bfcb891fc7821daa501e30c113fb1bf16.zip |
[Modules] Free modules that failed signature verification.
The control flow and ownership is weird enough so unique_ptr doesn't help here :(
llvm-svn: 220569
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
-rw-r--r-- | clang/lib/Serialization/ModuleManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index 300ef31b590..c76a318805e 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -145,6 +145,7 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type, // module is *itself* up to date, but has an out-of-date importer. Modules.erase(Entry); Chain.pop_back(); + delete New; return OutOfDate; } } |