[llvm] r194724 - Remove unnecessary 'else' after return.
David Blaikie
dblaikie at gmail.com
Thu Nov 14 11:37:56 PST 2013
Author: dblaikie
Date: Thu Nov 14 13:37:56 2013
New Revision: 194724
URL: http://llvm.org/viewvc/llvm-project?rev=194724&view=rev
Log:
Remove unnecessary 'else' after return.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp?rev=194724&r1=194723&r2=194724&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp Thu Nov 14 13:37:56 2013
@@ -865,12 +865,11 @@ void CompileUnit::addTemplateParams(DIE
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
More information about the llvm-commits
mailing list