[LLVMbugs] [Bug 4975] New: Assertion failed: (Begin + idx < End), function operator[]

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Sep 13 22:18:35 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=4975

           Summary: Assertion failed: (Begin + idx < End), function
                    operator[]
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: evan.cheng at apple.com, llvmbugs at cs.uiuc.edu,
                    bob.wilson at apple.com


ddunbar at giles:tmp$ cat t.ll
; ModuleID = 'inputs/test.4.a.c'
target datalayout =
"e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32"
target triple = "thumbv7-apple-darwin9.3.0"

%0 = type <{ [0 x i32] }>
%union.T0 = type { }

@.str = private constant [23 x i8] c"    fn4: arg0 (empty)\0A\00" ; <[23 x
i8]*> [#uses=1]

define arm_apcscc void @fn4(%0) nounwind {
entry:
  %arg0 = alloca %union.T0                        ; <%union.T0*> [#uses=1]
  %1 = bitcast %union.T0* %arg0 to %0*            ; <%0*> [#uses=1]
  store %0 %0, %0* %1, align 1
  %call = call arm_apcscc  i32 (i8*, ...)* @printf(i8* getelementptr inbounds
([23 x i8]* @.str, i32 0, i32 0)) ; <i32> [#uses=0]
  ret void
}

declare arm_apcscc i32 @printf(i8*, ...)
ddunbar at giles:tmp$ llc < t.ll
        .syntax unified
Assertion failed: (Begin + idx < End), function operator[], file
/Volumes/Data/Users/ddunbar/llvm/include/llvm/ADT/SmallVector.h, line 124.
0   llc               0x0000000100b73187 PrintStackTrace(void*) + 38
1   llc               0x0000000100b73715 SignalHandler(int) + 336
2   libSystem.B.dylib 0x00007fff8726214a _sigtramp + 26
3   libSystem.B.dylib 0x0000000102411010 _sigtramp + 2065362656
4   libSystem.B.dylib 0x00007fff872de104 __pthread_markcancel + 0
5   llc               0x0000000100735125
llvm::SmallVectorImpl<llvm::SDValue>::operator[](unsigned int) + 85
6   llc               0x00000001007a62a0
llvm::SelectionDAGISel::LowerArguments(llvm::BasicBlock*) + 2958
7   llc               0x00000001007e0394
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function&,
llvm::MachineFunction&, llvm::MachineModuleInfo*, llvm::DwarfWriter*,
llvm::TargetInstrInfo const&) + 400
8   llc               0x00000001007e1a30
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 982
9   llc               0x00000001008a8a59
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 83
10  llc               0x0000000100af229b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 341
11  llc               0x0000000100af2889
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 111
12  llc               0x0000000100af2a38
llvm::FunctionPassManager::run(llvm::Function&) + 112
13  llc               0x000000010002f458 main + 3233
14  llc               0x000000010002e0a8 start + 52
Stack dump:
0.      Program arguments: llc 
1.      Running pass 'ARM Instruction Selection' on function '@fn4'
Abort trap


-- 
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