Address review comments

* add namespace
* fix block comment style
* SEMA_ATTR -> SEMANTICS_ATTR
* error when SEMANTICS_ATTR isn't defined
This commit is contained in:
zoecarver
2019-11-02 21:58:26 -07:00
parent 9c1a614efb
commit 2ca448b23d
12 changed files with 84 additions and 77 deletions

View File

@@ -149,7 +149,7 @@ bool ObjectOutliner::isValidUseOfObject(SILInstruction *I, bool isCOWObject,
// There should only be a single call to findStringSwitchCase. But even
// if there are multiple calls, it's not problem - we'll just optimize the
// last one we find.
if (cast<ApplyInst>(I)->hasSemantics(FIND_STRING_SWITCH_CASE))
if (cast<ApplyInst>(I)->hasSemantics(semantics::FIND_STRING_SWITCH_CASE))
*FindStringCall = cast<ApplyInst>(I);
return true;