[clang][Interp] Implement ComplexToReal casts (#77294)
commit18d0a7e4c0d085de4e652e359bdd6778c43ec9bf
authorTimm Baeder <tbaeder@redhat.com>
Thu, 18 Jan 2024 12:55:04 +0000 (18 13:55 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 12:55:04 +0000 (18 13:55 +0100)
tree4aa37a9e02fe87bddd5052db4ec08cb418dc867a
parent11ec512f444986c5cf09ad8b5c01a93063b21c4a
[clang][Interp] Implement ComplexToReal casts (#77294)

Add a new emitComplexReal() helper function and use that for the new
casts as well as the old __real implementation.
clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/ByteCodeExprGen.h
clang/test/AST/Interp/complex.cpp