summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-05-16 22:02:36 +0000
committerEric Christopher <echristo@apple.com>2012-05-16 22:02:36 +0000
commitde098cd08f809782db9a14b0a5a3ef0afdea8dd8 (patch)
tree8bec6399e563dd0b741f12c083fc12172392b278
parente26c721976f942901935e638c30173e45118e1ee (diff)
downloadbcm5719-llvm-de098cd08f809782db9a14b0a5a3ef0afdea8dd8.tar.gz
bcm5719-llvm-de098cd08f809782db9a14b0a5a3ef0afdea8dd8.zip
Remove unnecessary temporary.
llvm-svn: 156953
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 2d76f9bc0b5..57d8108925d 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud