summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <syaghmour@apple.com>2019-07-17 20:16:13 +0000
committerShafik Yaghmour <syaghmour@apple.com>2019-07-17 20:16:13 +0000
commita0858e2f20c84df1be9d0add9b726996bbe395a4 (patch)
tree56e85da764961f3b7bb44f7a2ff18c1a1783fa85 /llvm/lib/CodeGen/LocalStackSlotAllocation.cpp
parentc2cd84bcfbd68e1368874a373744e4c978f2a762 (diff)
downloadbcm5719-llvm-a0858e2f20c84df1be9d0add9b726996bbe395a4.tar.gz
bcm5719-llvm-a0858e2f20c84df1be9d0add9b726996bbe395a4.zip
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
Diffstat (limited to 'llvm/lib/CodeGen/LocalStackSlotAllocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud