[llvm] r287909 - [X86] Invert an 'if' and early out to fix a weird indentation. NFCI
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 24 18:29:24 PST 2016
Author: ctopper
Date: Thu Nov 24 20:29:24 2016
New Revision: 287909
URL: http://llvm.org/viewvc/llvm-project?rev=287909&view=rev
Log:
[X86] Invert an 'if' and early out to fix a weird indentation. NFCI
Modified:
llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
Modified: llvm/trunk/lib/Target/X86/X86MCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCInstLower.cpp?rev=287909&r1=287908&r2=287909&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCInstLower.cpp Thu Nov 24 20:29:24 2016
@@ -1705,7 +1705,8 @@ void X86AsmPrinter::EmitInstruction(cons
CASE_ALL_MOV_RM()
if (!OutStreamer->isVerboseAsm())
break;
- if (MI->getNumOperands() > 4)
+ if (MI->getNumOperands() <= 4)
+ break;
if (auto *C = getConstantFromPool(*MI, MI->getOperand(4))) {
std::string Comment;
raw_string_ostream CS(Comment);
More information about the llvm-commits
mailing list