[clang][Interp][NFC] Simplify generated code for references
authorTimm Bäder <tbaeder@redhat.com>
Sat, 15 Oct 2022 08:11:24 +0000 (10:11 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Wed, 26 Oct 2022 06:49:11 +0000 (08:49 +0200)
commitea2596692f5f15e911020c0779c7ee0df51382a9
treefc3dd94a9677a8be2e035b3f62b80a37595b8a76
parentf007c99ed12f15f23e39f02d0fcb71eecead9b97
[clang][Interp][NFC] Simplify generated code for references

Instead of getting a pointer to a pointer to a value, followed by
dereferencing once, leaving us with a pointer to a value, we can instead
just get the pointer to the value (the reference in question) directly.
This simplifies (and shrinks) the generated bytecode somewhat.
clang/lib/AST/Interp/ByteCodeExprGen.cpp