]> granicus.if.org Git - clang/commitdiff
[clang][SemaStmtAsm] small refactoring, NFC.
authorCoby Tayree <coby.tayree@intel.com>
Sun, 10 Sep 2017 12:39:21 +0000 (12:39 +0000)
committerCoby Tayree <coby.tayree@intel.com>
Sun, 10 Sep 2017 12:39:21 +0000 (12:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312882 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmtAsm.cpp

index 603f970dbc2c46eb7ab2facb9b4a6574733f53aa..548b4b47ea28bfde5164bf5555c53192cc061942 100644 (file)
@@ -62,11 +62,13 @@ static bool CheckAsmLValue(const Expr *E, Sema &S) {
 
 /// isOperandMentioned - Return true if the specified operand # is mentioned
 /// anywhere in the decomposed asm string.
-static bool isOperandMentioned(unsigned OpNo,
-                         ArrayRef<GCCAsmStmt::AsmStringPiece> AsmStrPieces) {
+static bool
+isOperandMentioned(unsigned OpNo,
+                   ArrayRef<GCCAsmStmt::AsmStringPiece> AsmStrPieces) {
   for (unsigned p = 0, e = AsmStrPieces.size(); p != e; ++p) {
     const GCCAsmStmt::AsmStringPiece &Piece = AsmStrPieces[p];
-    if (!Piece.isOperand()) continue;
+    if (!Piece.isOperand())
+      continue;
 
     // If this is a reference to the input and if the input was the smaller
     // one, then we have to reject this asm.