mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
sema: accept an array literal of enum case references as compile-time constant
This commit is contained in:
@@ -2265,7 +2265,7 @@ class ConstExtractor: public ASTWalker {
|
||||
void record(Expr *E, Expr *ValueProvider, StringRef ReferecedD = "") {
|
||||
std::string content;
|
||||
llvm::raw_string_ostream os(content);
|
||||
ValueProvider->printConstExprValue(&os);
|
||||
ValueProvider->printConstExprValue(&os, nullptr);
|
||||
assert(!content.empty());
|
||||
auto buffered = SCtx.buffer(content);
|
||||
switch(ValueProvider->getKind()) {
|
||||
|
||||
Reference in New Issue
Block a user