Closed
Description
Repro:
#[repr(C)]
pub struct Foo(u32);
pub extern fn bar() -> Foo {
Foo(0)
}
fn main() {}
ICE:
File: C:/rust/src/llvm/lib/IR/Instructions.cpp, Line 1086
Expression: getOperand(0)->getType() == cast<PointerType>(getOperand(1)->getType())->getElementType() && "Ptr must be a pointer to Val type!"