mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-20 02:58:10 +00:00
Simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70534 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fa8162f08
commit
ef956fc784
@ -3545,14 +3545,11 @@ public:
|
||||
|
||||
DenseMap<GlobalVariable *, SmallVector<DbgScope *, 2> >::iterator
|
||||
SI = DbgInlinedScopeMap.find(GV);
|
||||
if (SI == DbgInlinedScopeMap.end()) {
|
||||
SmallVector<DbgScope *, 2> Scopes;
|
||||
Scopes.push_back(Scope);
|
||||
DbgInlinedScopeMap[GV] = Scopes;
|
||||
} else {
|
||||
SmallVector<DbgScope *, 2> &Scopes = SI->second;
|
||||
Scopes.push_back(Scope);
|
||||
}
|
||||
|
||||
if (SI == DbgInlinedScopeMap.end())
|
||||
DbgInlinedScopeMap[GV].push_back(Scope);
|
||||
else
|
||||
SI->second.push_back(Scope);
|
||||
|
||||
DenseMap<GlobalVariable *, SmallVector<unsigned, 4> >::iterator
|
||||
I = InlineInfo.find(GV);
|
||||
|
Loading…
Reference in New Issue
Block a user