summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
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
commiteeb003491811f3bf08e1a8a625cb6adc5f6fdfc7 (patch)
tree793392ef024e37965cefbd1faafd4faaaaa70359 /llvm/lib/Target/X86
parent622455e87cbf1c817b9d4ebe4362875333f6547f (diff)
downloadbcm5719-llvm-eeb003491811f3bf08e1a8a625cb6adc5f6fdfc7.tar.gz
bcm5719-llvm-eeb003491811f3bf08e1a8a625cb6adc5f6fdfc7.zip
Fix unused variable warning.
llvm-svn: 180044
Diffstat (limited to 'llvm/lib/Target/X86')
-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 2ca863509f8..282064d383b 100644
--- a/llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud