[LLVMbugs] [Bug 21220] New: Clang generates broken module, "Instruction does not dominate all uses!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 8 23:48:51 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21220

            Bug ID: 21220
           Summary: Clang generates broken module, "Instruction does not
                    dominate all uses!"
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.majnemer at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

$ cat t.cpp
struct s {
  char c[33];
};
struct t {
  t(const s &);
};
extern int a;
void fn1() {
  switch (a) {
  case 0:
    *new t(s());
  case 1:
    (t(s()));
  }
}

$ ~/llvm/Debug+Asserts/bin/clang -cc1 -x c++ t.cpp -o - -emit-llvm -O1
-fexceptions
t.cpp:11:5: warning: expression result unused
    *new t(s());
    ^~~~~~~~~~~
Instruction does not dominate all uses!
  %call = call noalias i8* @_Znwm(i64 1) #4
  call void @_ZdlPv(i8* %call) #5
fatal error: error in backend: Broken function found, compilation aborted!

-- 
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/20141009/449bce06/attachment.html>


More information about the llvm-bugs mailing list