Skip to content

Commit cdde0d9

Browse files
committed
[clang][Interp][NFC] Make a local variable const
1 parent 5818572 commit cdde0d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/Interp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ bool CMP3(InterpState &S, CodePtr OpPC, const ComparisonCategoryInfo *CmpInfo) {
811811
const auto *CmpValueInfo = CmpInfo->getValueInfo(CmpResult);
812812
assert(CmpValueInfo);
813813
assert(CmpValueInfo->hasValidIntValue());
814-
APSInt IntValue = CmpValueInfo->getIntValue();
814+
const APSInt &IntValue = CmpValueInfo->getIntValue();
815815
return SetThreeWayComparisonField(S, OpPC, P, IntValue);
816816
}
817817

0 commit comments

Comments
 (0)