summaryrefslogtreecommitdiff
path: root/lib/Target/X86/AsmParser/X86AsmParser.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-04-22 20:42:32 +0000
committerChad Rosier <mcrosier@apple.com>2013-04-22 20:42:32 +0000
commit566542c87bf215c621ca58963c9940649ed27068 (patch)
treee84d986b82e26e5555eb9c596570e903f28f8231 /lib/Target/X86/AsmParser/X86AsmParser.cpp
parent8247c5df9c847841f0bf257483860cdebf496b99 (diff)
downloadllvm-566542c87bf215c621ca58963c9940649ed27068.tar.gz
llvm-566542c87bf215c621ca58963c9940649ed27068.tar.bz2
llvm-566542c87bf215c621ca58963c9940649ed27068.tar.xz
Fix unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180044 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 2ca863509f..282064d383 100644
--- a/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -1130,7 +1130,7 @@ X86AsmParser::CreateMemForInlineAsm(unsigned SegReg, const MCExpr *Disp,
InlineAsmIdentifierInfo &Info){
- if (const MCSymbolRefExpr *SymRef = dyn_cast<MCSymbolRefExpr>(Disp)) {
+ if (Disp && 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