aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2024-03-13 15:55:18 +0000
committerDavid Blaikie <dblaikie@gmail.com>2024-03-13 16:03:16 +0000
commitf15a790fd383665ec4defa0711e975476fd8b18b (patch)
treed92490dcd0e090a995211e85dca0e52b542b17d9 /clang/lib
parentcc761a7c356178009d186e70740ccb53bf0c6deb (diff)
downloadllvm-f15a790fd383665ec4defa0711e975476fd8b18b.zip
llvm-f15a790fd383665ec4defa0711e975476fd8b18b.tar.gz
llvm-f15a790fd383665ec4defa0711e975476fd8b18b.tar.bz2
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.
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/AST/Interp/Interp.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/AST/Interp/Interp.h b/clang/lib/AST/Interp/Interp.h
index bb22065..db80e2d 100644
--- a/clang/lib/AST/Interp/Interp.h
+++ b/clang/lib/AST/Interp/Interp.h
@@ -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>