[llvm] r179866 - [ms-inline asm] Move this variable into the scope in which it is used.
Chad Rosier
mcrosier at apple.com
Fri Apr 19 10:32:29 PDT 2013
Author: mcrosier
Date: Fri Apr 19 12:32:29 2013
New Revision: 179866
URL: http://llvm.org/viewvc/llvm-project?rev=179866&view=rev
Log:
[ms-inline asm] Move this variable into the scope in which it is used.
Modified:
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=179866&r1=179865&r2=179866&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Fri Apr 19 12:32:29 2013
@@ -1584,10 +1584,10 @@ X86Operand *X86AsmParser::ParseIntelOper
X86Operand *X86AsmParser::ParseIntelOperand() {
const AsmToken &Tok = Parser.getTok();
SMLoc Start = Tok.getLoc(), End;
- StringRef AsmTokStr = Tok.getString();
// Offset, length, type and size operators.
if (isParsingInlineAsm()) {
+ StringRef AsmTokStr = Tok.getString();
if (AsmTokStr == "offset" || AsmTokStr == "OFFSET")
return ParseIntelOffsetOfOperator();
if (AsmTokStr == "length" || AsmTokStr == "LENGTH")
More information about the llvm-commits
mailing list