forked from OSchip/llvm-project
Fix a comment typo and clean up formatting.
llvm-svn: 164550
This commit is contained in:
parent
e769d862ee
commit
0fc64f0b11
|
@ -392,7 +392,7 @@ static bool isSimpleMSAsm(std::vector<std::vector<StringRef> > Pieces,
|
||||||
return true;
|
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) {
|
static void buildMSAsmPieces(StringRef Asm, std::vector<StringRef> &Pieces) {
|
||||||
std::pair<StringRef,StringRef> Split = Asm.split(' ');
|
std::pair<StringRef,StringRef> Split = Asm.split(' ');
|
||||||
|
|
||||||
|
@ -424,8 +424,9 @@ static void buildMSAsmStrings(Sema &SemaRef, ArrayRef<Token> AsmToks,
|
||||||
SmallString<512> Asm;
|
SmallString<512> Asm;
|
||||||
unsigned startTok = 0;
|
unsigned startTok = 0;
|
||||||
for (unsigned i = 0, e = AsmToks.size(); i < e; ++i) {
|
for (unsigned i = 0, e = AsmToks.size(); i < e; ++i) {
|
||||||
bool isNewAsm = i == 0 || AsmToks[i].isAtStartOfLine() ||
|
bool isNewAsm = ((i == 0) ||
|
||||||
AsmToks[i].is(tok::kw_asm);
|
AsmToks[i].isAtStartOfLine() ||
|
||||||
|
AsmToks[i].is(tok::kw_asm));
|
||||||
|
|
||||||
if (isNewAsm) {
|
if (isNewAsm) {
|
||||||
if (i) {
|
if (i) {
|
||||||
|
|
Loading…
Reference in New Issue