From: Eric Christopher Date: Wed, 16 May 2012 22:02:36 +0000 (+0000) Subject: Remove unnecessary temporary. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9f07d45f16769cd7f8521b549c889a517492fd5;p=clang Remove unnecessary temporary. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156953 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 2d76f9bc0b..57d8108925 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -688,9 +688,7 @@ llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty, } llvm::DIArray EltTypeArray = DBuilder.getOrCreateArray(EltTys); - - llvm::DIType DbgTy = DBuilder.createSubroutineType(Unit, EltTypeArray); - return DbgTy; + return DBuilder.createSubroutineType(Unit, EltTypeArray); }