================
@@ -904,14 +904,27 @@ void CodeGenFunction::EmitIndirectGotoStmt(const 
IndirectGotoStmt &S) {
 void CodeGenFunction::EmitIfStmt(const IfStmt &S) {
   const Stmt *Else = S.getElse();
 
+  auto EmitArm = [this](const Stmt *Arm) {
+    RunCleanupsScope Scope(*this);
+    CGDebugInfo *DI = getDebugInfo();
+
+    // A compound statement already has its own lexical block, so only add
+    // one here for an unbraced declaration.
+    bool EmitDebugScope = DI && CGM.getCodeGenOpts().hasReducedDebugInfo() &&
----------------
anatasluo wrote:

Yes, that was the intent. All three now use hasReducedDebugInfo().

https://github.com/llvm/llvm-project/pull/243767
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to