forked from OSchip/llvm-project
Do not use a const Twine here
This has caused segfaults when using Polly in the context of Julia, that are not reproducible on my machine in 'make check-polly'. llvm-svn: 225326
This commit is contained in:
parent
b0e9b35bc3
commit
5dfcb1a7e0
|
@ -112,7 +112,7 @@ Value *IslExprBuilder::createAccessAddress(isl_ast_expr *Expr) {
|
|||
const ScopArrayInfo *SAI = ScopArrayInfo::getFromId(BaseId);
|
||||
Base = SAI->getBasePtr();
|
||||
assert(Base->getType()->isPointerTy() && "Access base should be a pointer");
|
||||
const Twine &BaseName = Base->getName();
|
||||
auto BaseName = Base->getName();
|
||||
|
||||
if (Base->getType() != SAI->getType())
|
||||
Base = Builder.CreateBitCast(Base, SAI->getType(),
|
||||
|
|
Loading…
Reference in New Issue