tahonermann added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:12951-12954
+ // ObjC's @encode()
+ if (isa(E->getLHS()->IgnoreParenImpCasts()) ||
+ isa(E->getRHS()->IgnoreParenImpCasts()))
return Error(E);
tbaeder wrote:
tbaeder added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:12951-12954
+ // ObjC's @encode()
+ if (isa(E->getLHS()->IgnoreParenImpCasts()) ||
+ isa(E->getRHS()->IgnoreParenImpCasts()))
return Error(E);
tahonermann wrote:
tahonermann added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:12951-12954
+ // ObjC's @encode()
+ if (isa(E->getLHS()->IgnoreParenImpCasts()) ||
+ isa(E->getRHS()->IgnoreParenImpCasts()))
return Error(E);
tbaeder wrote:
tbaeder added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:12951-12954
+ // ObjC's @encode()
+ if (isa(E->getLHS()->IgnoreParenImpCasts()) ||
+ isa(E->getRHS()->IgnoreParenImpCasts()))
return Error(E);
tahonermann wrote:
tahonermann added inline comments.
Comment at: clang/lib/AST/ExprConstant.cpp:12951-12954
+ // ObjC's @encode()
+ if (isa(E->getLHS()->IgnoreParenImpCasts()) ||
+ isa(E->getRHS()->IgnoreParenImpCasts()))
return Error(E);
A comment to e
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, jwakely.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This fixes https://github.com/llvm/llvm-project/issues/58754
Repository: