diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-09-24 19:57:55 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-09-24 19:57:55 +0000 |
commit | 40d39e39e46eb36635c9735381ca5c4f916d30cd (patch) | |
tree | 9dd8b958b3e0dd802896db236bbfc643f9ff1d42 | |
parent | c12906ee78e006df6a71acf52ca9dd3171ddbf07 (diff) |
Fix a comment typo and clean up formatting.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164550 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaStmtAsm.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Sema/SemaStmtAsm.cpp b/lib/Sema/SemaStmtAsm.cpp index 33eb565b43..da4120af22 100644 --- a/lib/Sema/SemaStmtAsm.cpp +++ b/lib/Sema/SemaStmtAsm.cpp @@ -392,7 +392,7 @@ static bool isSimpleMSAsm(std::vector<std::vector<StringRef> > Pieces, return true; } -// Break the AsmSting into pieces (i.e., mnemonic and operands). +// Break the AsmString into pieces (i.e., mnemonic and operands). static void buildMSAsmPieces(StringRef Asm, std::vector<StringRef> &Pieces) { std::pair<StringRef,StringRef> Split = Asm.split(' '); @@ -424,8 +424,9 @@ static void buildMSAsmStrings(Sema &SemaRef, ArrayRef<Token> AsmToks, SmallString<512> Asm; unsigned startTok = 0; for (unsigned i = 0, e = AsmToks.size(); i < e; ++i) { - bool isNewAsm = i == 0 || AsmToks[i].isAtStartOfLine() || - AsmToks[i].is(tok::kw_asm); + bool isNewAsm = ((i == 0) || + AsmToks[i].isAtStartOfLine() || + AsmToks[i].is(tok::kw_asm)); if (isNewAsm) { if (i) { @@ -436,7 +437,7 @@ static void buildMSAsmStrings(Sema &SemaRef, ArrayRef<Token> AsmToks, } if (AsmToks[i].is(tok::kw_asm)) { i++; // Skip __asm - assert (i != e && "Expected another token"); + assert(i != e && "Expected another token"); } } |