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
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(),