[cfe-commits] r164550 - /cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Bob Wilson bob.wilson at apple.com
Mon Sep 24 12:57:55 PDT 2012


Author: bwilson
Date: Mon Sep 24 14:57:55 2012
New Revision: 164550

URL: http://llvm.org/viewvc/llvm-project?rev=164550&view=rev
Log:
Fix a comment typo and clean up formatting.

Modified:
    cfe/trunk/lib/Sema/SemaStmtAsm.cpp

Modified: cfe/trunk/lib/Sema/SemaStmtAsm.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmtAsm.cpp?rev=164550&r1=164549&r2=164550&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmtAsm.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmtAsm.cpp Mon Sep 24 14:57:55 2012
@@ -392,7 +392,7 @@
   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 @@
   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 @@
       }
       if (AsmToks[i].is(tok::kw_asm)) {
         i++; // Skip __asm
-        assert (i != e && "Expected another token");
+        assert(i != e && "Expected another token");
       }
     }
 





More information about the cfe-commits mailing list