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

            Bug ID: 39339
           Summary: [DebugInfo@O2][Dexter] Misleading value for local
                    variable at the return statement.
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Spawned from bug 39187:

By modifying the original test case to:

--------8<--------
int main() {
  volatile int foo = 4;

  int beards = 0;
  int birds = 0;

  if (foo == 4) {
    beards = 8;
    birds = 3;
  } else {
    beards = 4;
    birds = 6;
  }

  return beards;
}
-------->8--------

When stopping at the return, the variable 'birds' shows always the value of
zero.

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

Reply via email to