[clang][Interp] Don't create global variables more than once
authorTimm Bäder <tbaeder@redhat.com>
Fri, 27 Jan 2023 08:32:20 +0000 (09:32 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 13 Apr 2023 13:41:43 +0000 (15:41 +0200)
commitf508d9b1d4fa48e7586b9587a22be23c976297a7
tree62cb4f63ddc5d316ca895b300efac108e8b0dc3f
parent2ecbe7ca76d9a1aec1b47d4816ffa91021488a7a
[clang][Interp] Don't create global variables more than once

just because we're being told to evaluate it twice. This sometimes
happens when a variable is evaluated again during codegen.

Differential Revision: https://reviews.llvm.org/D147535
clang/lib/AST/Interp/ByteCodeExprGen.cpp