Skip to content

Commit

Permalink
Remove use of reference lifetime extension introduced in cdde0d9
Browse files Browse the repository at this point in the history
Rather than dealing with which is more readable, the named variable
doesn't seem to add value here - so omit it.
  • Loading branch information
dwblaikie committed Mar 13, 2024
1 parent cc761a7 commit f15a790
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions clang/lib/AST/Interp/Interp.h
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,7 @@ bool CMP3(InterpState &S, CodePtr OpPC, const ComparisonCategoryInfo *CmpInfo) {
CmpInfo->getValueInfo(CmpInfo->makeWeakResult(CmpResult));
assert(CmpValueInfo);
assert(CmpValueInfo->hasValidIntValue());
const APSInt &IntValue = CmpValueInfo->getIntValue();
return SetThreeWayComparisonField(S, OpPC, P, IntValue);
return SetThreeWayComparisonField(S, OpPC, P, CmpValueInfo->getIntValue());
}

template <PrimType Name, class T = typename PrimConv<Name>::T>
Expand Down

0 comments on commit f15a790

Please sign in to comment.