[llvm-bugs] [Bug 32423] New: DominatorTree is not up to date!

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Mar 25 11:51:41 PDT 2017


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

            Bug ID: 32423
           Summary: DominatorTree is not up to date!
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org

Running

clang -cc1 -emit-llvm -fprofile-instrument=clang -O2

on

struct foo {
  foo *bah;
};
struct bar {
  bool operator!=(const bar &xxx)  {
    return xyz != xxx.xyz;
  }
  bar(foo **abc, foo *cur) : abc(abc), xyz(cur) {}
  foo **abc;
  foo *xyz;
  bar operator++(int) {
    bar tmp = *this;
    if (xyz != 0)
      xyz = xyz->bah;
    while (xyz == 0)
      xyz = *abc;
    return tmp;
  }
};
foo **abcs;
int eee;
bar Begin() {
  foo **buk = abcs;
  return bar(buk, *buk);
}
bar End() {
  foo **term = abcs + eee;
  return bar(term, *term);
}
void zed() {
  for (bar it = Begin(); it != End(); it++)
    ;
}

crashes with

DominatorTree is not up to date!

Tested with r297719

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170325/cca2aab9/attachment.html>


More information about the llvm-bugs mailing list