Skip to content

Commit 70e193f

Browse files
committed
---
yaml --- r: 348782 b: refs/heads/master c: 6f3d610 h: refs/heads/master
1 parent 67b37df commit 70e193f

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 2fe3ce8af87cb0c0744e16ad8ee137fb805370d6
2+
refs/heads/master: 6f3d6105c25d94c660093a5e07a6a762db699e98
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/PrintAsObjC/DeclAndTypePrinter.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -393,13 +393,12 @@ class DeclAndTypePrinter::Implementation
393393
os << " SWIFT_COMPILE_NAME(\"" << Elt->getName() << "\")";
394394
}
395395

396-
auto *RVE = Elt->getStructuralRawValueExpr();
397-
if (auto ILE = cast_or_null<IntegerLiteralExpr>(RVE)) {
398-
os << " = ";
399-
if (ILE->isNegative())
400-
os << "-";
401-
os << ILE->getDigitsText();
402-
}
396+
// Print the raw values, even the ones that we synthesize.
397+
auto *ILE = cast<IntegerLiteralExpr>(Elt->getStructuralRawValueExpr());
398+
os << " = ";
399+
if (ILE->isNegative())
400+
os << "-";
401+
os << ILE->getDigitsText();
403402
os << ",\n";
404403
}
405404
os << "};\n";

0 commit comments

Comments
 (0)