]> granicus.if.org Git - clang/commit
Fix assert instantiating string init of static variable
authorBen Langmuir <blangmuir@apple.com>
Mon, 26 Jan 2015 19:04:10 +0000 (19:04 +0000)
committerBen Langmuir <blangmuir@apple.com>
Mon, 26 Jan 2015 19:04:10 +0000 (19:04 +0000)
commit28dfa35addb4a4fcd35c9e3b656f919e456e4021
tree0fecbdec4f0da82df61ebf81f88f96b58dfffb2a
parent561cc251135d8a1c0400761595a5fe183f6e798f
Fix assert instantiating string init of static variable

... when the variable's type is a typedef of a ConstantArrayType. Just
look through the typedef (and any other sugar).  We only use the
constant array type here to get the element count.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@227115 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/SemaTemplate/instantiate-static-var.cpp