[llvm] r180059 - [ms-inline asm] Removed this unnecessary check. In the current implementation,
Chad Rosier
mcrosier at apple.com
Mon Apr 22 15:38:35 PDT 2013
Author: mcrosier
Date: Mon Apr 22 17:38:35 2013
New Revision: 180059
URL: http://llvm.org/viewvc/llvm-project?rev=180059&view=rev
Log:
[ms-inline asm] Removed this unnecessary check. In the current implementation,
Disp will always be one of MCSymbolRefExpr or MCConstantExpr, and never NULL.
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=180059&r1=180058&r2=180059&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Mon Apr 22 17:38:35 2013
@@ -1135,7 +1135,7 @@ X86AsmParser::CreateMemForInlineAsm(unsi
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
More information about the llvm-commits
mailing list