Skip to content

Commit 611d5ae

Browse files
committed
[clang] Fix -Wunused-variable in InterpBuiltin.cpp (NFC)
llvm-project/clang/lib/AST/Interp/InterpBuiltin.cpp:1332:21: error: unused variable 'SrcDesc' [-Werror,-Wunused-variable] const Descriptor *SrcDesc = Src.getFieldDesc(); ^ 1 error generated.
1 parent a99b912 commit 611d5ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/Interp/InterpBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ bool SetThreeWayComparisonField(InterpState &S, CodePtr OpPC,
13291329
bool DoMemcpy(InterpState &S, CodePtr OpPC, const Pointer &Src, Pointer &Dest) {
13301330
assert(Src.isLive() && Dest.isLive());
13311331

1332-
const Descriptor *SrcDesc = Src.getFieldDesc();
1332+
[[maybe_unused]] const Descriptor *SrcDesc = Src.getFieldDesc();
13331333
const Descriptor *DestDesc = Dest.getFieldDesc();
13341334

13351335
assert(!DestDesc->isPrimitive() && !SrcDesc->isPrimitive());

0 commit comments

Comments
 (0)