[llvm-bugs] [Bug 24722] New: segfault in tailcallelim on 32-bit
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 5 13:50:12 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24722
Bug ID: 24722
Summary: segfault in tailcallelim on 32-bit
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: opt
Assignee: unassignedbugs at nondot.org
Reporter: diggsey at googlemail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
The following IL will cause `opt bugpoint-reduced-simplified.ll -tailcallelim`
to segfault:
---------
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
target triple = "i686-pc-windows-gnu"
define fastcc void @drop() {
call fastcc void @drop()
br label %here
here:
ret void
}
---------
Removing the redundant branch instruction will cause it to trigger an assert
instead:
---------
Assertion failed!
Program:
C:\Users\Diggory\Projects\rust3\i686-pc-windows-gnu\llvm\Release+Asserts\bin\opt.exe
File: C:/Users/Diggory/Projects/rust3/src/llvm/include/llvm/Support/Casting.h,
Line 95
Expression: Val && "isa<> used on a null pointer"
Illegal instruction
---------
--
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/20150905/04c1d7c7/attachment.html>
More information about the llvm-bugs
mailing list