Skip to content

invalid use of iterators in gvn #3730

@llvmbot

Description

@llvmbot
Bugzilla Link 3358
Resolution FIXED
Resolved on Jan 22, 2009 01:40
Version unspecified
OS Linux
Attachments testcase .ll
Reporter LLVM Bugzilla Contributor
CC @isanbard,@nlewycky

Extended Description

When built with ENABLE_EXPENSIVE_CHECKS=1, the attached testcase (reduced
from the llvm-gcc build) gives:

$ opt -gvn regexp.bc -disable-output
/usr/include/c++/4.3/bits/stl_algo.h:2180:error: elements in iterator range
[__first, __last) are not partitioned by the value __val.

Objects involved in the operation:
iterator "__first" @ 0x0x7fffe6d01ca0 {
type = N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPSt4pairIPN4llvm10BasicBlockENS4_12MemDepResultEENSt6__norm6vectorIS8_SaIS8_EEEEENSt7__debug6vectorIS8_SC_EEEE (mutable iterator);
state = dereferenceable (start-of-sequence);
references sequence with type NSt7__debug6vectorISt4pairIPN4llvm10BasicBlockENS2_12MemDepResultEESaIS6_EEE' @ 0x0x7fffe6d01ca0 } iterator "__last" @ 0x0x7fffe6d01c40 { type = N11__gnu_debug14_Safe_iteratorIN9__gnu_cxx17__normal_iteratorIPSt4pairIPN4llvm10BasicBlockENS4_12MemDepResultEENSt6__norm6vectorIS8_SaIS8_EEEEENSt7__debug6vectorIS8_SC_EEEE (mutable iterator); state = dereferenceable; references sequence with type NSt7__debug6vectorISt4pairIPN4llvm10BasicBlockENS2_12MemDepResultEESaIS6_EEE' @ 0x0x7fffe6d01c40
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions