mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Simplify code. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa6ab4393e
commit
877ca3418f
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user