[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>
Thu, 29 Sep 2022 10:50:56 +0000 (12:50 +0200)
commitc090295916a921e809184f589c6830475e293b8b
treed22149557c252c99d71a05048e7eb6858c43b2bb
parentdf1cc801da05a6436f6dc3062ccd490f236cd7ec
[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.cpp [new file with mode: 0644]