Commit 44487 broke bootstrap of llvm-gcc-4.2. It is
[oota-llvm.git] / lib / VMCore / Module.cpp
index c66032388baf4ba23d380f580db06eb0169d46b4..e20dab30be99c4767c93463e13fe22a7b988301d 100644 (file)
@@ -298,6 +298,9 @@ void Module::dropAllReferences() {
 
   for(Module::global_iterator I = global_begin(), E = global_end(); I != E; ++I)
     I->dropAllReferences();
+
+  for(Module::alias_iterator I = alias_begin(), E = alias_end(); I != E; ++I)
+    I->dropAllReferences();
 }
 
 void Module::addLibrary(const std::string& Lib) {