Skip to content

Commit 24c6409

Browse files
committed
[clang] Fix -Wunused-variable in ByteCodeStmtGen.cpp (NFC)
llvm-project/clang/lib/AST/Interp/ByteCodeStmtGen.cpp:196:31: error: unused variable 'B' [-Werror,-Wunused-variable] const Record::Base *B = R->getVirtualBase(BaseDecl); ^ 1 error generated.
1 parent 74a5e77 commit 24c6409

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/Interp/ByteCodeStmtGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,7 @@ bool ByteCodeStmtGen<Emitter>::visitFunc(const FunctionDecl *F) {
193193
assert(BaseDecl);
194194

195195
if (Init->isBaseVirtual()) {
196-
const Record::Base *B = R->getVirtualBase(BaseDecl);
197-
assert(B);
196+
assert(R->getVirtualBase(BaseDecl));
198197
if (!this->emitGetPtrThisVirtBase(BaseDecl, InitExpr))
199198
return false;
200199

0 commit comments

Comments
 (0)