]> granicus.if.org Git - clang/commit
Fix template instantiation for compound statements so that it properly
authorDouglas Gregor <dgregor@apple.com>
Wed, 20 May 2009 22:57:03 +0000 (22:57 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 20 May 2009 22:57:03 +0000 (22:57 +0000)
commit66b46be52f82addd4edab3a54928e111dfa09de7
treea40ca836cecc7a5accde63f76edf08daa4b46a73
parent767d649c5353ca19c5a1e181783240a0994bb20a
Fix template instantiation for compound statements so that it properly
passes the "isStmtExpr" flag, to suppress warnings about unused
expressions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72190 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/Sema.h
lib/Sema/SemaTemplateInstantiateExpr.cpp
lib/Sema/SemaTemplateInstantiateStmt.cpp
test/SemaTemplate/instantiate-expr-3.cpp