[llvm] r303196 - [MetadataLoader] Remove unused Vector. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue May 16 11:41:46 PDT 2017
Author: davide
Date: Tue May 16 13:41:46 2017
New Revision: 303196
URL: http://llvm.org/viewvc/llvm-project?rev=303196&view=rev
Log:
[MetadataLoader] Remove unused Vector. NFCI.
Modified:
llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp?rev=303196&r1=303195&r2=303196&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/MetadataLoader.cpp Tue May 16 13:41:46 2017
@@ -500,7 +500,7 @@ class MetadataLoader::MetadataLoaderImpl
// Upgrade variables attached to globals.
for (auto &GV : TheModule.globals()) {
- SmallVector<MDNode *, 1> MDs, NewMDs;
+ SmallVector<MDNode *, 1> MDs;
GV.getMetadata(LLVMContext::MD_dbg, MDs);
GV.eraseMetadata(LLVMContext::MD_dbg);
for (auto *MD : MDs)
More information about the llvm-commits
mailing list