From a80e1181b78183dc36ec6568559d38faa86981f0 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 28 Apr 2007 13:45:00 +0000 Subject: Implement review feedback. Aliasees can be either GlobalValue's or bitcasts of them. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36537 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Module.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/VMCore/Module.cpp') diff --git a/lib/VMCore/Module.cpp b/lib/VMCore/Module.cpp index c66032388b..e20dab30be 100644 --- a/lib/VMCore/Module.cpp +++ b/lib/VMCore/Module.cpp @@ -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) { -- cgit v1.2.3-18-g5258