[clang][Interp][NFC] Refactor VisitDeclRefExpr
authorTimm Bäder <tbaeder@redhat.com>
Sun, 5 Feb 2023 07:39:40 +0000 (08:39 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Mon, 3 Apr 2023 14:42:25 +0000 (16:42 +0200)
commitb15a946b9f59f91518ae5e2cb6125592d9c1bf3c
treec64be50a03f5784f0efdb83493c901b334bf0710
parent8c8b4d24f019e51900f15e008b52a05cf1e66381
[clang][Interp][NFC] Refactor VisitDeclRefExpr

Make it clearer that we only need to check for variables and parameters
if we don't have the easy case. Also only do the IsReference check if
necessary.
clang/lib/AST/Interp/ByteCodeExprGen.cpp