https://bugs.llvm.org/show_bug.cgi?id=41624
Bug ID: 41624
Summary: [InstSimplify] assertion in SimplifyGEPInst
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Common Code Generator Code
Assignee: unassignedb...@nondot.org
Reporter: llvm-...@redking.me.uk
CC: dav...@freebsd.org, dblai...@gmail.com,
llvm-bugs@lists.llvm.org, spatel+l...@rotateright.com
Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=12846
; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "llvm/test/Transforms/InstCombine/vector_gep1.ll"
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-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @test7(<2 x { i32, i32 }*> %a) {
%A = alloca i16
%w = getelementptr { i32, i32 }, <2 x { i32, i32 }*> %a, <2 x i32> <i32 5,
i32 9>, <2 x i32> zeroinitializer
%E = extractelement <2 x i32*> %w, i1 false
store i32* %E, i32** undef
ret void
}
opt -instcombine
opt: /home/simon/LLVM/llvm/lib/IR/Type.cpp:630: static llvm::PointerType*
llvm::PointerType::get(llvm::Type*, unsigned int): Assertion `EltTy && "Can't
get a pointer to <null> type!"' failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs