[PATCH] D68180: [PowerPC] Fix conditions of assert in PPCAsmPrinter

Jinsong Ji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 29 05:43:34 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL373164: [PowerPC] Fix conditions of assert in PPCAsmPrinter (authored by jsji, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D68180?vs=222280&id=222321#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68180/new/

https://reviews.llvm.org/D68180

Files:
  llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp


Index: llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
===================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
+++ llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
@@ -664,7 +664,7 @@
     TmpInst.setOpcode(PPC::LWZ);
 
     const MachineOperand &MO = MI->getOperand(1);
-    assert(MO.isGlobal() || MO.isCPI() || MO.isJTI() || MO.isBlockAddress() &&
+    assert((MO.isGlobal() || MO.isCPI() || MO.isJTI() || MO.isBlockAddress()) &&
            "Unexpected operand type for LWZtoc pseudo.");
 
     // Map the operand to its corresponding MCSymbol.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68180.222321.patch
Type: text/x-patch
Size: 612 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190929/a8955a52/attachment.bin>


More information about the llvm-commits mailing list