diff options
| author | Coby Tayree <coby.tayree@intel.com> | 2017-09-10 12:39:21 +0000 |
|---|---|---|
| committer | Coby Tayree <coby.tayree@intel.com> | 2017-09-10 12:39:21 +0000 |
| commit | 18f92186895cca282c2e677750bf93028894f02d (patch) | |
| tree | b191ab11936ee0fc7687697575ee233efbb1c022 | |
| parent | ef66b3bbabb8ee06ed22ceecec7f17c047d3c92e (diff) | |
| download | bcm5719-llvm-18f92186895cca282c2e677750bf93028894f02d.tar.gz bcm5719-llvm-18f92186895cca282c2e677750bf93028894f02d.zip | |
[clang][SemaStmtAsm] small refactoring, NFC.
llvm-svn: 312882
| -rw-r--r-- | clang/lib/Sema/SemaStmtAsm.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaStmtAsm.cpp b/clang/lib/Sema/SemaStmtAsm.cpp index 603f970dbc2..548b4b47ea2 100644 --- a/clang/lib/Sema/SemaStmtAsm.cpp +++ b/clang/lib/Sema/SemaStmtAsm.cpp @@ -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. |

