[LLVMbugs] [Bug 7519] New: Assertion failed: (getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"), function AssertOK, file Instructions.cpp, line 1046.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jun 29 01:01:53 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7519
Summary: Assertion failed: (getOperand(0)->getType() ==
cast<PointerType>(getOperand(1)->getType())->getElemen
tType() && "Ptr must be a pointer to Val type!"),
function AssertOK, file Instructions.cpp, line 1046.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: rdivacky at freebsd.org
CC: llvmbugs at cs.uiuc.edu
pes delta$ cat error.c
struct pretty_print_info {
};
typedef struct {
}
diagnostic_info;
typedef struct diagnostic_context diagnostic_context;
typedef void (*diagnostic_starter_fn) (diagnostic_context *, diagnostic_info
*);
struct diagnostic_context {
diagnostic_starter_fn begin_diagnostic;
};
extern diagnostic_context *global_dc;
struct c_pretty_print_info {
};
static void cp_diagnostic_starter(diagnostic_context *, diagnostic_info *);
void
init_error(void)
{
(global_dc)->begin_diagnostic = cp_diagnostic_starter;
}
pes delta$ clang -c error.c
Assertion failed: (getOperand(0)->getType() ==
cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a
pointer to Val type!"), function AssertOK, file Instructions.cpp, line 1046.
Stack dump:
0. Program arguments: clang -c error.c
1. <eof> parser at end of file
2. error.c:16:1: LLVM IR generation of declaration 'init_error'
3. error.c:16:1: Generating code for declaration 'init_error'
4. error.c:17:1: LLVM IR generation of compound statement ('{}')
Abort (core dumped)
--
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