[PATCH] D60528: [RISCV] Diagnose invalid second input register operand when using %tprel_add

James Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 1 04:24:44 PDT 2019


jrtc27 added inline comments.
Herald added a subscriber: Jim.


================
Comment at: llvm/trunk/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp:1701
+    if (checkPseudoAddTPRel(Inst, Operands))
+      return true;
   }
----------------
This is rather nasty, as it currently implicitly falls through to the end of the switch block rather than with an explicit `break`, so any new cases need to either come before this one or add the `break` in. Could you please add the `break` in a follow-up commit?


Repository:
  rL LLVM

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

https://reviews.llvm.org/D60528





More information about the llvm-commits mailing list