[ms-inline asm] Removed this unnecessary check. In the current implementation,

Disp will always be one of MCSymbolRefExpr or MCConstantExpr, and never NULL.

llvm-svn: 180059
This commit is contained in:
Chad Rosier 2013-04-22 22:38:35 +00:00
parent 53e5768351
commit 65dd0399c6
1 changed files with 1 additions and 1 deletions

View File

@ -1135,7 +1135,7 @@ X86AsmParser::CreateMemForInlineAsm(unsigned SegReg, const MCExpr *Disp,
unsigned Scale, SMLoc Start, SMLoc End,
unsigned Size, StringRef Identifier,
InlineAsmIdentifierInfo &Info){
if (Disp && isa<MCSymbolRefExpr>(Disp)) {
if (isa<MCSymbolRefExpr>(Disp)) {
// If this is not a VarDecl then assume it is a FuncDecl or some other label
// reference. We need an 'r' constraint here, so we need to create register
// operand to ensure proper matching. Just pick a GPR based on the size of