[LLVMbugs] [Bug 6374] New: Assertion failed: (lr && "Cannot find live range")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 21 13:55:56 PST 2010


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

           Summary: Assertion failed: (lr && "Cannot find live range")
           Product: clang
           Version: trunk
          Platform: Other
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P5
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hinokind at gmail.com
   Estimated Hours: 0.0


Created an attachment (id=4271)
 --> (http://www.llvm.org/bugs/attachment.cgi?id=4271)
testcase

Assertion fails when compiling testcase with -O1.

$ clang -O1 assert5.c 
assert5.c:3:1: warning: typedef requires a name [-pedantic]
typedef enum
^~~~~~~
assert5.c:16:1: warning: control reaches end of non-void function
[-Wreturn-type]
} MODRM_TABLE;
^
assert5.c:16:3: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
} MODRM_TABLE;
  ^
assert5.c:19:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
assert5.c:33:25: warning: excess elements in struct initializer [-pedantic]
 { 0xD4, 0x1, i386_aam, i386_aam, },
                        ^~~~~~~~
Assertion failed: (lr && "Cannot find live range"), function JoinIntervals,
file SimpleRegisterCoalescing.cpp, line 2300.
Stack dump:
0.    Program arguments: /usr/local/bin/clang -cc1 -triple
x86_64-unknown-freebsd8.0 -S -disable-free -main-file-name assert5.c
-mrelocation-model static -mdisable-fp-elim -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -resource-dir /usr/local/lib/clang/1.1 -O1
-fmessage-length 157 -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-bzbutr.s -x c assert5.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Simple Register Coalescing' on function '@i386_aam'
clang: error: compiler command failed due to signal 6 (use -v to see
invocation)

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the llvm-bugs mailing list