[LLVMbugs] [Bug 3407] New: Assertion `0 && "ERROR: Bad TargetData ctor used. " " Tool did not specify a TargetData to use?"' failed.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Jan 25 17:02:39 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3407
Summary: Assertion `0 && "ERROR: Bad TargetData ctor used. "
"Tool did not specify a TargetData to use?"' failed.
Product: libraries
Version: trunk
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Target Description Classes
AssignedTo: unassignedbugs at nondot.org
ReportedBy: sliedes at cc.hut.fi
CC: llvmbugs at cs.uiuc.edu
Running
opt -targetdata
on the attached bitcode causes this assertion failure:
------------------------------------------------------------
$ opt bugpoint-reduced-simplified.bc -targetdata
opt: /home/sliedes/llvm-svn/src/llvm/include/llvm/Target/TargetData.h:114:
llvm::TargetData::TargetData(): Assertion `0 && "ERROR: Bad TargetData ctor
used. " "Tool did not specify a TargetData to use?"' failed.
0 opt 0x000000000078440f
1 libc.so.6 0x00007f35bd7d8f60
2 libc.so.6 0x00007f35bd7d8ed5 gsignal + 53
3 libc.so.6 0x00007f35bd7da3f3 abort + 387
4 libc.so.6 0x00007f35bd7d1dc9 __assert_fail + 233
5 opt 0x000000000069a85d
6 opt 0x000000000049699a main + 1050
7 libc.so.6 0x00007f35bd7c51a6 __libc_start_main + 230
8 opt 0x000000000048be39 sinh + 65
Aborted
------------------------------------------------------------
Disassembled:
------------------------------------------------------------
; ModuleID = 'bugpoint-reduced-simplified.bc'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-unknown-linux-gnu"
%struct.Cls = type { i32, i8, [2 x %struct.Cls*], [2 x %struct.Lit*] }
%struct.Lit = type { i8 }
define fastcc i32 @cmp_activity(%struct.Cls* %c, %struct.Cls* %d) nounwind {
entry:
unreachable
}
------------------------------------------------------------
--
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