Skip to content

Commit 6805335

Browse files
committed
Use ternary
1 parent 6fb0307 commit 6805335

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/Target/AArch64/Utils/AArch64SMEAttributes.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,7 @@ class SMECallAttrs {
165165
SMECallAttrs(const CallBase &CB);
166166

167167
SMEAttrs &caller() { return CallerFn; }
168-
SMEAttrs &callee() {
169-
if (IsIndirect)
170-
return Callsite;
171-
return CalledFn;
172-
}
168+
SMEAttrs &callee() { return IsIndirect ? Callsite : CalledFn; }
173169
SMEAttrs &callsite() { return Callsite; }
174170
SMEAttrs const &caller() const { return CallerFn; }
175171
SMEAttrs const &callee() const {

0 commit comments

Comments
 (0)