[clang] 3e8f217 - [clang][Interp][NFC] Handle AddressSpaceConversion casts
Timm Bäder via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 15 06:12:52 PDT 2024
Author: Timm Bäder
Date: 2024-06-15T15:12:35+02:00
New Revision: 3e8f2170bb7772abdc6215de0dc07c3f9bd51df5
URL: https://github.com/llvm/llvm-project/commit/3e8f2170bb7772abdc6215de0dc07c3f9bd51df5
DIFF: https://github.com/llvm/llvm-project/commit/3e8f2170bb7772abdc6215de0dc07c3f9bd51df5.diff
LOG: [clang][Interp][NFC] Handle AddressSpaceConversion casts
Ignore them. No test yet, but this will be useful in a future commit.
Added:
Modified:
clang/lib/AST/Interp/ByteCodeExprGen.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.cpp b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
index 300c013d15da8..13a68f3d05f6a 100644
--- a/clang/lib/AST/Interp/ByteCodeExprGen.cpp
+++ b/clang/lib/AST/Interp/ByteCodeExprGen.cpp
@@ -311,6 +311,7 @@ bool ByteCodeExprGen<Emitter>::VisitCastExpr(const CastExpr *CE) {
case CK_NonAtomicToAtomic:
case CK_NoOp:
case CK_UserDefinedConversion:
+ case CK_AddressSpaceConversion:
return this->delegate(SubExpr);
case CK_BitCast: {
More information about the cfe-commits
mailing list