1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Simplify code. No functionality change.

llvm-svn: 194383
This commit is contained in:
Benjamin Kramer 2013-11-11 14:54:34 +00:00
parent 83f140c801
commit b47354d912

View File

@ -616,11 +616,7 @@ bool StructType::isLayoutIdentical(StructType *Other) const {
/// getTypeByName - Return the type with the specified name, or null if there
/// is none by that name.
StructType *Module::getTypeByName(StringRef Name) const {
StringMap<StructType*>::iterator I =
getContext().pImpl->NamedStructTypes.find(Name);
if (I != getContext().pImpl->NamedStructTypes.end())
return I->second;
return 0;
return getContext().pImpl->NamedStructTypes.lookup(Name);
}