[clang][Interp] Ignore more non-VarDecl declarations
authorTimm Bäder <tbaeder@redhat.com>
Sun, 12 Mar 2023 07:32:07 +0000 (08:32 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Tue, 4 Apr 2023 08:41:46 +0000 (10:41 +0200)
commitee71cbddb77f8da9285657cac248b431928143b9
tree1063325aee042dec52a45b39c7e422c3455331b8
parentad2a48eaedac24c4b92a91ae8ac9c46037b61102
[clang][Interp] Ignore more non-VarDecl declarations

They are harmless and handled by other means, but we used to return
false from visitDeclStmt.

Differential Revision: https://reviews.llvm.org/D145861
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/test/AST/Interp/literals.cpp