Skip to content

Commit

Permalink
[clang][bytecode] Remove unnecessary if statement (#126223)
Browse files Browse the repository at this point in the history
This doesn't seem to do any good and breaks a few libc++ tests. Remove
the special case.
  • Loading branch information
tbaederr authored Feb 7, 2025
1 parent 1454fc9 commit a69975d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions clang/lib/AST/ByteCode/Compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6234,9 +6234,6 @@ bool Compiler<Emitter>::visitDeclRef(const ValueDecl *D, const Expr *E) {

return this->emitGetPtrParam(It->second.Offset, E);
}

if (D->getType()->isReferenceType())
return this->emitDummyPtr(D, E);
}

// In case we need to re-visit a declaration.
Expand Down

0 comments on commit a69975d

Please sign in to comment.