mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8247c5df9c
commit
566542c87b
@ -1130,7 +1130,7 @@ X86AsmParser::CreateMemForInlineAsm(unsigned SegReg, const MCExpr *Disp,
|
|||||||
InlineAsmIdentifierInfo &Info){
|
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
|
// 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
|
// 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
|
// operand to ensure proper matching. Just pick a GPR based on the size of
|
||||||
|
Loading…
Reference in New Issue
Block a user