https://bugs.llvm.org/show_bug.cgi?id=35524

            Bug ID: 35524
           Summary: [CodeView] Range-based for loop variables are not
                    available when debugging
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedb...@nondot.org
          Reporter: ztur...@google.com
                CC: amcca...@google.com, d...@google.com,
                    h...@chromium.org, llvm-bugs@lists.llvm.org,
                    l...@inglorion.net, r...@google.com

I encountered in yaml2coff.cpp.  In the function layoutCOFF, there is a loop
that begins like this.

  // Assign each section data address consecutively.
  for (COFFYAML::Section &S : CP.Obj.Sections) {


If you put a breakpoint in this loop and hover over S, or add a watch for it,
it displays as "Variable is optimized away and not available."

This is at O0, so we really need this.

I haven't tried to make a minimal repro yet, but hopefully it's straightforward
to do.  This should be easy enough for anyone to repro though.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to