mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 12:05:48 -04:00

While we ran getUnqualifiedType over the catch type, it isn't enough for array types. Use getUnqualifiedArrayType instead. This fixes PR21252. llvm-svn: 219582
22 lines
338 B
C++
22 lines
338 B
C++
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions | FileCheck %s
|
|
|
|
struct X { };
|
|
|
|
const X g();
|
|
|
|
void f() {
|
|
try {
|
|
throw g();
|
|
// CHECK: @_ZTI1X to i8
|
|
} catch (const X x) {
|
|
}
|
|
}
|
|
|
|
void h() {
|
|
try {
|
|
throw "ABC";
|
|
// CHECK: @_ZTIPKc to i8
|
|
} catch (char const(&)[4]) {
|
|
}
|
|
}
|