Fix bug: CBackend/2003-05-31-MissingStructName.ll
authorChris Lattner <sabre@nondot.org>
Sat, 31 May 2003 23:30:52 +0000 (23:30 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 31 May 2003 23:30:52 +0000 (23:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6495 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/FindUsedTypes.cpp

index 0916ab8c65f2a5cd427331bd11646a0dfe20871c..51d1b419f3063e221d3d8f6fd66db58007ce5170 100644 (file)
@@ -45,6 +45,7 @@ bool FindUsedTypes::run(Module &m) {
     IncorporateType(I->getType());
 
   for (Module::iterator MI = m.begin(), ME = m.end(); MI != ME; ++MI) {
+    IncorporateType(MI->getType());
     const Function &F = *MI;
   
     // Loop over all of the instructions in the function, adding their return