summaryrefslogtreecommitdiff
path: root/lib/Target/X86/AsmParser/X86AsmParser.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-04-22 22:38:35 +0000
committerChad Rosier <mcrosier@apple.com>2013-04-22 22:38:35 +0000
commitd50dc20f06d9cf95562899020f773cd9f8309786 (patch)
tree6c70360ee3c089a229c9b1c0bb24f2998e2cc853 /lib/Target/X86/AsmParser/X86AsmParser.cpp
parentf74d82d8e49ec54953c106a89e0a5951466d4e6b (diff)
downloadllvm-d50dc20f06d9cf95562899020f773cd9f8309786.tar.gz
llvm-d50dc20f06d9cf95562899020f773cd9f8309786.tar.bz2
llvm-d50dc20f06d9cf95562899020f773cd9f8309786.tar.xz
[ms-inline asm] Removed this unnecessary check. In the current implementation,
Disp will always be one of MCSymbolRefExpr or MCConstantExpr, and never NULL. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180059 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/AsmParser/X86AsmParser.cpp')
-rw-r--r--lib/Target/X86/AsmParser/X86AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 605510f61f..fef5cfe621 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -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