summaryrefslogtreecommitdiffstats
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
commit65dd0399c60f46b15929417d25ca9d2b09e48c7e (patch)
tree02a196c9f70734d33fa761d0eaa3a7bcee53f1f8
parent53e5768351754351aa8b512a375c3ecfcc6ebd09 (diff)
downloadbcm5719-llvm-65dd0399c60f46b15929417d25ca9d2b09e48c7e.tar.gz
bcm5719-llvm-65dd0399c60f46b15929417d25ca9d2b09e48c7e.zip
[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
-rw-r--r--llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp b/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
index 605510f61f0..fef5cfe6212 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud