Revert "[polly] [ScopInfo] Don't pre-compute the name of the Scop's region."
commit802894cd809ce2f8bcae52ee13f5de7f4739c049
authorPhilip Pfaffe <philip.pfaffe@gmail.com>
Wed, 2 May 2018 14:55:39 +0000 (2 14:55 +0000)
committerPhilip Pfaffe <philip.pfaffe@gmail.com>
Wed, 2 May 2018 14:55:39 +0000 (2 14:55 +0000)
treed58c23d9a258dfe42cfdccb74117ad952b9aee66
parentbbe61ebc800f6a46bdbbfb62604f367de0dd9686
Revert "[polly] [ScopInfo] Don't pre-compute the name of the Scop's region."

This reverts commit 0f9dc03765dc301fff7a52e2a0e1dd3e5f3130c5, r328666.

The change introduced a use-after-free, caused by the temporary name string
being destroyed after converting it to a StringRef.

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@331363 91177308-0d34-0410-b5e6-96231b3b80d8
include/polly/ScopInfo.h
lib/Analysis/ScopInfo.cpp