mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
Remove unnecessary 'else' after return.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194724 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5cb5ad977b
commit
f4837be7c1
@ -865,12 +865,11 @@ void CompileUnit::addTemplateParams(DIE &Buffer, DIArray TParams) {
|
||||
DIE *CompileUnit::getOrCreateContextDIE(DIScope Context) {
|
||||
if (Context.isType())
|
||||
return getOrCreateTypeDIE(DIType(Context));
|
||||
else if (Context.isNameSpace())
|
||||
if (Context.isNameSpace())
|
||||
return getOrCreateNameSpace(DINameSpace(Context));
|
||||
else if (Context.isSubprogram())
|
||||
if (Context.isSubprogram())
|
||||
return getOrCreateSubprogramDIE(DISubprogram(Context));
|
||||
else
|
||||
return getDIE(Context);
|
||||
return getDIE(Context);
|
||||
}
|
||||
|
||||
/// getOrCreateTypeDIE - Find existing DIE or create new DIE for the
|
||||
|
Loading…
x
Reference in New Issue
Block a user