diff --git a/lib/Analysis/IPA/FindUsedTypes.cpp b/lib/Analysis/IPA/FindUsedTypes.cpp index 0916ab8c65f..51d1b419f30 100644 --- a/lib/Analysis/IPA/FindUsedTypes.cpp +++ b/lib/Analysis/IPA/FindUsedTypes.cpp @@ -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