diff options
author | David Majnemer <david.majnemer@gmail.com> | 2014-10-12 06:58:22 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2014-10-12 06:58:22 +0000 |
commit | 571162af6bd9cf0ceb8a0e4270b0efeb6707b7e4 (patch) | |
tree | 25c0b52203aca75a115e3ecbdadd3ee46b297d4b /clang/test/CodeGenCXX/try-catch.cpp | |
parent | 6fd86f1678e984632795736d5692bc17ed4d1322 (diff) | |
download | bcm5719-llvm-571162af6bd9cf0ceb8a0e4270b0efeb6707b7e4.tar.gz bcm5719-llvm-571162af6bd9cf0ceb8a0e4270b0efeb6707b7e4.zip |
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.
llvm-svn: 219582
Diffstat (limited to 'clang/test/CodeGenCXX/try-catch.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/try-catch.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/try-catch.cpp b/clang/test/CodeGenCXX/try-catch.cpp index 89f229fee37..b50214ecdb9 100644 --- a/clang/test/CodeGenCXX/try-catch.cpp +++ b/clang/test/CodeGenCXX/try-catch.cpp @@ -11,3 +11,11 @@ void f() { } catch (const X x) { } } + +void h() { + try { + throw "ABC"; + // CHECK: @_ZTIPKc to i8 + } catch (char const(&)[4]) { + } +} |