"llvm/git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "3231d13ddd9157fd66b06240e772774c8f616c8b"
Fix CreateFunctionTemplateSpecialization to prevent dangling poiner to stack memory
In ClangASTContext::CreateFunctionTemplateSpecializationInfo a TemplateArgumentList is allocated on the stack but is treated as if it is persistent in subsequent calls. When we exit the function func_decl will still point to the stack allocated memory. We will use TemplateArgumentList::CreateCopy instead which will allocate memory out of the DeclContext. Differential Revision: https://reviews.llvm.org/D64777 llvm-svn: 366365
Loading
Please register or sign in to comment