First Last Prev Next    No search results available
Details
: [X86] div and rem constant exprs invalidate iterators!
Bug#: 123
: libraries
: Backend: X86
Status: RESOLVED
Resolution: FIXED
: All
: All
: 1.0
: P2
: normal
: 1.1

:
: compile-fail
:
:
  Show dependency tree - Show dependency graph
People
Reporter: John T. Criswell <criswell@uiuc.edu>
Assigned To: Chris Lattner <sabre@nondot.org>

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2003-11-18 10:34
The kimwitu++ bytecode file
(/home/vadve/criswell/Downloads/CXXCode/kimwitu++-2.3.8/src/Gen.linux) hits the
following assertion:

lli: /home/vadve/criswell/llvm/lib/Target/X86/InstSelectSimple.cpp:52:
llvm::MachineInstrBuilder llvm::BMI(llvm::MachineBasicBlock*,
__gnu_cxx::__normal_iterator<llvm::MachineInstr**,
std::vector<llvm::MachineInstr*, std::allocator<llvm::MachineInstr*> > >&, int,
unsigned int): Assertion `I >= MBB->begin() && I <= MBB->end() && "Bad
iterator!"' failed.
------- Comment #1 From Chris Lattner 2003-11-18 11:27:42 -------
I can reproduce this with just the _ZN9__gnu_cxx16__stl_next_primeEm function
and LLC.  I'm looking into it.

Thanks!

-Chris
------- Comment #2 From Chris Lattner 2003-11-18 11:48:43 -------
Fixed, here's the patch:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031117/009616.html

Thanks,

-Chris

First Last Prev Next    No search results available