mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cxx-interop] Do not emit IR for C++20 requires expr
This fixes a compiler crash when emitting IR for a for-in loop over a C++ `std::vector` in C++20 mode. rdar://108810356
This commit is contained in:
@@ -119,6 +119,8 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool TraverseRequiresExpr(clang::RequiresExpr *RE) { return true; }
|
||||
|
||||
// Do not traverse type locs, as they might contain expressions that reference
|
||||
// code that should not be instantiated and/or emitted.
|
||||
bool TraverseTypeLoc(clang::TypeLoc TL) { return true; }
|
||||
|
||||
Reference in New Issue
Block a user