Remove unnecessary 'else' after return.

llvm-svn: 194724
This commit is contained in:
David Blaikie 2013-11-14 19:37:56 +00:00
parent 73ca00ca72
commit 1dbca7018e
1 changed files with 3 additions and 4 deletions

View File

@ -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