]> granicus.if.org Git - clang/commit
When cloning LocalInstantiationScope's, don't update the current scope in Sema.
authorRichard Trieu <rtrieu@google.com>
Wed, 18 Mar 2015 21:52:47 +0000 (21:52 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 18 Mar 2015 21:52:47 +0000 (21:52 +0000)
commitf92377d79bdc150609fd39c255d5aebade7fc3e0
tree7e151de835930f5dce4d3a716a8b39c29519063d
parent82bfe2377f944b02d5833a5fd5d7531c71dd29dc
When cloning LocalInstantiationScope's, don't update the current scope in Sema.

Construction of LocalInstantiationScope automatically updates the current scope
inside Sema.  However, when cloning a scope, the current scope does not change.
Change the cloning function to preserve the current scope.

Review: http://reviews.llvm.org/D8407
BUG: https://llvm.org/bugs/show_bug.cgi?id=22931

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232675 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Sema/Template.h
test/SemaCXX/warn-thread-safety-negative.cpp