Closed
Description
Compiling the program:
fn main() { &*b"foo"; }
gives the output:
rustc: /build/rust-git/src/rust/src/llvm/lib/IR/Constants.cpp:1992: static llvm::Constant* llvm::ConstantExpr::getGetElementPtr(llvm::Constant*, llvm::ArrayRef<llvm::Value*>, bool, llvm::Type*): Assertion `C->getType()->isPtrOrPtrVectorTy() && "Non-pointer type for constant GetElementPtr expression"' failed.
Issue #17233 seems as if it might be related, but it's not the same assertion failure.