Skip to content

Commit a69975d

Browse files
authored
[clang][bytecode] Remove unnecessary if statement (llvm#126223)
This doesn't seem to do any good and breaks a few libc++ tests. Remove the special case.
1 parent 1454fc9 commit a69975d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

clang/lib/AST/ByteCode/Compiler.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6234,9 +6234,6 @@ bool Compiler<Emitter>::visitDeclRef(const ValueDecl *D, const Expr *E) {
62346234

62356235
return this->emitGetPtrParam(It->second.Offset, E);
62366236
}
6237-
6238-
if (D->getType()->isReferenceType())
6239-
return this->emitDummyPtr(D, E);
62406237
}
62416238

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

0 commit comments

Comments
 (0)