[LLVMbugs] [Bug 7612] New: invalid IR from clang -emit-llvm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 9 10:30:00 PDT 2010


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

           Summary: invalid IR from clang -emit-llvm
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: gohman at apple.com
                CC: llvmbugs at cs.uiuc.edu


For this testcase:

int main(void) { return 0; }

clang does this:

$ clang -emit-llvm a.c
Alloca array size must be i32
  %retval = alloca i32, i32 ()* @main, align 2    ; <i32*> [#uses=1]
Instruction does not dominate all uses!
  %retval = alloca i32, i32 ()* @main, align 2    ; <i32*> [#uses=1]
  store i32 0, i32* %retval
Broken module found, compilation aborted!

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list