Skip to content

Commit f15a790

Browse files
committed
Remove use of reference lifetime extension introduced in cdde0d9
Rather than dealing with which is more readable, the named variable doesn't seem to add value here - so omit it.
1 parent cc761a7 commit f15a790

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/Interp/Interp.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,7 @@ bool CMP3(InterpState &S, CodePtr OpPC, const ComparisonCategoryInfo *CmpInfo) {
846846
CmpInfo->getValueInfo(CmpInfo->makeWeakResult(CmpResult));
847847
assert(CmpValueInfo);
848848
assert(CmpValueInfo->hasValidIntValue());
849-
const APSInt &IntValue = CmpValueInfo->getIntValue();
850-
return SetThreeWayComparisonField(S, OpPC, P, IntValue);
849+
return SetThreeWayComparisonField(S, OpPC, P, CmpValueInfo->getIntValue());
851850
}
852851

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

0 commit comments

Comments
 (0)