Skip to content

Commit

Permalink
[Parse] Fix a couple typos in PR apple#12964
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Nov 29, 2017
1 parent a2ff7f3 commit dd81583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Basic/LangOptions.cpp
Expand Up @@ -263,7 +263,7 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
addPlatformConditionValue(PlatformConditionKind::Runtime, "_Native");

// Set the "targetEnvironment" platform condition if targeting a simulator
// environmet. Otherwise _no_ value is present for targetEnvironment; it's
// environment. Otherwise _no_ value is present for targetEnvironment; it's
// an optional disambiguating refinement of the triple.
if (swift::tripleIsAnySimulator(Target))
addPlatformConditionValue(PlatformConditionKind::TargetEnvironment,
Expand Down
2 changes: 1 addition & 1 deletion lib/Parse/ParseIfConfig.cpp
Expand Up @@ -550,7 +550,7 @@ static bool isVersionIfConfigCondition(Expr *Condition) {
/// Get the identifier string from an \c Expr if it's an
/// \c UnresolvedDeclRefExpr, otherwise the empty string.
static StringRef getDeclRefStr(Expr *E) {
if (auto *UDRE = cast<UnresolvedDeclRefExpr>(E)) {
if (auto *UDRE = dyn_cast<UnresolvedDeclRefExpr>(E)) {
return UDRE->getName().getBaseIdentifier().str();
}
return "";
Expand Down

0 comments on commit dd81583

Please sign in to comment.