[clang][Interp] Handle enums
authorTimm Bäder <tbaeder@redhat.com>
Fri, 16 Sep 2022 07:17:52 +0000 (09:17 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 30 Sep 2022 06:18:14 +0000 (08:18 +0200)
commit1ecaa617e73e9c1eeba47b0d12626f0a846a4288
treeeff81c7f5ee386c250c167ddb8714b3e4bb8d4cb
parent052da736e51db68202f20155792a692c93897100
[clang][Interp] Handle enums

Handle DeclRefExprs of enum types. They are otherwise handled like
integers.

Differential Revision: https://reviews.llvm.org/D134020
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/test/AST/Interp/enums-targets.cpp [new file with mode: 0644]
clang/test/AST/Interp/enums.cpp [new file with mode: 0644]