]> granicus.if.org Git - clang/commitdiff
EmitStopPoint already checks if we have debug info.
authorEric Christopher <echristo@apple.com>
Tue, 10 Apr 2012 05:04:07 +0000 (05:04 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 10 Apr 2012 05:04:07 +0000 (05:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154384 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGStmt.cpp

index e82a15ef777fe3bfe5d78cfcdefc81ff2c2ec9f9..f442bc23672b160b5ef83ebe53a1675b6be218d5 100644 (file)
@@ -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();