summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-04-10 05:04:07 +0000
committerEric Christopher <echristo@apple.com>2012-04-10 05:04:07 +0000
commit3910ec96cbd009165183d01dfb61301995962481 (patch)
tree78795596d169347a34d25d44300d762a35cafbc4
parentcdbde6973afd68f4675a79872a81fe1108f4d23f (diff)
downloadbcm5719-llvm-3910ec96cbd009165183d01dfb61301995962481.tar.gz
bcm5719-llvm-3910ec96cbd009165183d01dfb61301995962481.zip
EmitStopPoint already checks if we have debug info.
llvm-svn: 154384
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index e82a15ef777..f442bc23672 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -778,7 +778,7 @@ void CodeGenFunction::EmitReturnStmt(const ReturnStmt &S) {
void CodeGenFunction::EmitDeclStmt(const DeclStmt &S) {
// As long as debug info is modeled with instructions, we have to ensure we
// have a place to insert here and write the stop point here.
- if (getDebugInfo() && HaveInsertPoint())
+ if (HaveInsertPoint())
EmitStopPoint(&S);
for (DeclStmt::const_decl_iterator I = S.decl_begin(), E = S.decl_end();
OpenPOWER on IntegriCloud