mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +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) {
|
DIE *CompileUnit::getOrCreateContextDIE(DIScope Context) {
|
||||||
if (Context.isType())
|
if (Context.isType())
|
||||||
return getOrCreateTypeDIE(DIType(Context));
|
return getOrCreateTypeDIE(DIType(Context));
|
||||||
else if (Context.isNameSpace())
|
if (Context.isNameSpace())
|
||||||
return getOrCreateNameSpace(DINameSpace(Context));
|
return getOrCreateNameSpace(DINameSpace(Context));
|
||||||
else if (Context.isSubprogram())
|
if (Context.isSubprogram())
|
||||||
return getOrCreateSubprogramDIE(DISubprogram(Context));
|
return getOrCreateSubprogramDIE(DISubprogram(Context));
|
||||||
else
|
return getDIE(Context);
|
||||||
return getDIE(Context);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getOrCreateTypeDIE - Find existing DIE or create new DIE for the
|
/// getOrCreateTypeDIE - Find existing DIE or create new DIE for the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user