https://bugs.llvm.org/show_bug.cgi?id=37384
Bug ID: 37384
Summary: @catch (Class) causes assertion failure
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: LLVM Codegen
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
% cat /tmp/catch.m
void f(void);
void g() {
@try {
f();
} @catch (Class) {
}
}
% clang -cc1 -triple arm64-apple-ios11.0.0 -fexceptions -fobjc-exceptions
-emit-llvm /tmp/catch.m
clang: ../../tools/clang/lib/CodeGen/CGObjCMac.cpp:7476: virtual llvm::Constant
*(anonymous namespace)::CGObjCNonFragileABIMac::GetEHType(clang::QualType):
Assertion `IT && "Invalid @catch type."' failed.
Does it make sense to catch a Class type? If not, it should be rejected in
Sema, right?
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs