Skip to content

Commit e57b872

Browse files
authored
Avoid unusable variable in ByteCodeExprGen.cpp (#90469)
Inline assert to avoid unusable variable warning/error when asserts are disabled.
1 parent 8d53866 commit e57b872

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/Interp/ByteCodeExprGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,8 +2363,7 @@ bool ByteCodeExprGen<Emitter>::VisitCXXUuidofExpr(const CXXUuidofExpr *E) {
23632363
if (!this->emitGetPtrGlobal(*GlobalIndex, E))
23642364
return false;
23652365

2366-
const Record *R = this->getRecord(E->getType());
2367-
assert(R);
2366+
assert(this->getRecord(E->getType()));
23682367

23692368
const APValue &V = E->getGuidDecl()->getAsAPValue();
23702369
if (V.getKind() == APValue::None)

0 commit comments

Comments
 (0)