[PATCH] D131424: Remove the unused/undefined _cmd parameter to objc_direct methods.
Puyan Lotfi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 8 17:57:27 PDT 2022
plotfi added a comment.
I tried running the following on some example code and got a stacktrace:
// RUN: clang -cc1 -no-opaque-pointers -emit-llvm -fobjc-arc -triple x86_64-apple-darwin10 -o - %s -O0
@interface C
- (int)getInt __attribute__((objc_direct));
@end
@implementation C
- (int)getInt __attribute__((objc_direct)) {
}
@end
void f() {
C *c;
[c getInt];
}
7 clang-16 0x00000001054ee160 clang::CodeGen::CGFunctionInfo::create(unsigned int, bool, bool, clang::FunctionType::ExtInfo const&, llvm::ArrayRef<clang::FunctionType::ExtParameterInfo>, clang::CanQual<clang::Type>, llvm::ArrayRef<clang::CanQual<clang::Type>>, clang::CodeGen::RequiredArgs) (.cold.2) + 0
8 clang-16 0x000000010291f50c clang::CodeGen::CGFunctionInfo::create(unsigned int, bool, bool, clang::FunctionType::ExtInfo const&, llvm::ArrayRef<clang::FunctionType::ExtParameterInfo>, clang::CanQual<clang::Type>, llvm::ArrayRef<clang::CanQual<clang::Type>>, clang::CodeGen::RequiredArgs) + 608
9 clang-16 0x000000010291b390 clang::CodeGen::CodeGenTypes::arrangeLLVMFunctionInfo(clang::CanQual<clang::Type>, bool, bool, llvm::ArrayRef<clang::CanQual<clang::Type>>, clang::FunctionType::ExtInfo, llvm::ArrayRef<clang::FunctionType::ExtParameterInfo>, clang::CodeGen::RequiredArgs) + 568
10 clang-16 0x000000010291d24c clang::CodeGen::CodeGenTypes::arrangeObjCMessageSendSignature(clang::ObjCMethodDecl const*, clang::QualType) + 760
11 clang-16 0x0000000102a45844 (anonymous namespace)::CGObjCCommonMac::GenerateDirectMethod(clang::ObjCMethodDecl const*, clang::ObjCContainerDecl const*) + 320
12 clang-16 0x0000000102a3e044 (anonymous namespace)::CGObjCCommonMac::GenerateMethod(clang::ObjCMethodDecl const*, clang::ObjCContainerDecl const*) + 56
13 clang-16 0x0000000102a13674 clang::CodeGen::CodeGenFunction::StartObjCMethod(clang::ObjCMethodDecl const*, clang::ObjCContainerDecl const*) + 176
14 clang-16 0x0000000102a13b2c clang::CodeGen::CodeGenFunction::GenerateObjCMethod(clang::ObjCMethodDecl const*) + 68
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131424/new/
https://reviews.llvm.org/D131424
More information about the cfe-commits
mailing list