Closed
Description
I was updating some code to rust beta and have just hit this roadblock when trying to run tests:
rustc: /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/llvm/lib/IR/Constants.cpp:1622: static llvm::Constant* llvm::ConstantExpr::getPointerCast(llvm::Constant*, llvm::Type*): Assertion `S->getType()->isPtrOrPtrVectorTy() && "Invalid cast"' failed.
Aborted (core dumped)
Repro steps:
- Checkout this commit.
- Run
./test.sh
from the top-level repo dir.
I tried minimizing the code by hand for a smaller test case, but failed.
Version: rustc 1.0.0-beta (9854143cb 2015-04-02) (built 2015-04-02)
OS: OS X Yosemite 10.10.2 (14C1514)