]> granicus.if.org Git - clang/commit
Fix use-after-free.
authorManuel Klimek <klimek@google.com>
Mon, 30 Sep 2013 13:29:01 +0000 (13:29 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 30 Sep 2013 13:29:01 +0000 (13:29 +0000)
commit2e563c28c456b48f43f38f5a92a4bc292d5cda91
treeb674c410997156e043c08ecd2f8edec059531fe0
parentf78bf4a0132a3ea366ba3baadd9d6af26c617d11
Fix use-after-free.

TemplateDeclInstantiator takes the MultiLevelArgumentList by const-ref
and stores a const-ref member. Thus, we must not pass a temporary
into the constructor.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191665 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaTemplateInstantiateDecl.cpp