forked from OSchip/llvm-project
parent
d5772de0eb
commit
25a3470371
|
@ -411,7 +411,6 @@ static bool buildMSAsmStrings(Sema &SemaRef,
|
||||||
assert (!AsmToks.empty() && "Didn't expect an empty AsmToks!");
|
assert (!AsmToks.empty() && "Didn't expect an empty AsmToks!");
|
||||||
|
|
||||||
SmallString<512> Asm;
|
SmallString<512> Asm;
|
||||||
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) ||
|
bool isNewAsm = ((i == 0) ||
|
||||||
AsmToks[i].isAtStartOfLine() ||
|
AsmToks[i].isAtStartOfLine() ||
|
||||||
|
@ -420,7 +419,6 @@ static bool buildMSAsmStrings(Sema &SemaRef,
|
||||||
if (isNewAsm) {
|
if (isNewAsm) {
|
||||||
if (i) {
|
if (i) {
|
||||||
AsmStrings.push_back(Asm.str());
|
AsmStrings.push_back(Asm.str());
|
||||||
startTok = i;
|
|
||||||
Asm.clear();
|
Asm.clear();
|
||||||
}
|
}
|
||||||
if (AsmToks[i].is(tok::kw_asm)) {
|
if (AsmToks[i].is(tok::kw_asm)) {
|
||||||
|
|
Loading…
Reference in New Issue