[clang][Interp] Handle defined functions without a body
authorTimm Bäder <tbaeder@redhat.com>
Fri, 30 Dec 2022 10:50:48 +0000 (11:50 +0100)
committerTimm Bäder <tbaeder@redhat.com>
Thu, 2 Mar 2023 07:17:48 +0000 (08:17 +0100)
commitbf6c1344ec1898d27760e135b77ad2676f88a697
tree0973feb791ad9e11b0d016d59a4ed9d71eefb6b0
parent5230f6c1c274778d9204288667c62c8b199cab65
[clang][Interp] Handle defined functions without a body

This happens when explicitly defaulting a constructor, for example.

Differential Revision: https://reviews.llvm.org/D140776
clang/lib/AST/Interp/ByteCodeEmitter.cpp
clang/test/AST/Interp/records.cpp