]> granicus.if.org Git - clang/commit
CodeGen: Strip qualifiers from qualified array types in catches
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 12 Oct 2014 06:58:22 +0000 (06:58 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 12 Oct 2014 06:58:22 +0000 (06:58 +0000)
commit673b3960bb51f96f48d9690e6e3d419a0632c6f9
tree1e8aaff325cb5845bbc746bfebdf5af4033eff86
parentdf527b05fd2c196a48087ad0d843155f274bcbba
CodeGen: Strip qualifiers from qualified array types in catches

While we ran getUnqualifiedType over the catch type,
it isn't enough for array types.  Use getUnqualifiedArrayType instead.

This fixes PR21252.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219582 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGException.cpp
test/CodeGenCXX/try-catch.cpp