[svn r249] Changed inline asm clobbers to a set instead of a list so we don't get duplicate clobbers.

This commit is contained in:
Tomas Lindquist Olsen
2008-06-08 06:45:54 +02:00
parent fd8cec14e1
commit 68d7827d35
4 changed files with 43 additions and 29 deletions

View File

@@ -993,13 +993,13 @@ void LabelStatement::toIR(IRState* p)
LOG_SCOPE;
// if it's an inline asm label, we don't create a basicblock, just emit it in the asm
if (p->inASM)
if (p->asmBlock)
{
IRAsmStmt* a = new IRAsmStmt;
a->code = ".LDASM";
a->code += ident->toChars();
a->code += ":";
p->ASMs.push_back(a);
p->asmBlock->s.push_back(a);
return;
}