[PATCH] D103343: [SystemZ][z/OS] Stricter condition for HLASM class instantiation

Anirudh Prasad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 31 08:42:27 PDT 2021


anirudhp updated this revision to Diff 348814.
anirudhp added a comment.

- More explicit check which eliminates implicit assumptions


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103343

Files:
  llvm/lib/MC/MCParser/AsmParser.cpp


Index: llvm/lib/MC/MCParser/AsmParser.cpp
===================================================================
--- llvm/lib/MC/MCParser/AsmParser.cpp
+++ llvm/lib/MC/MCParser/AsmParser.cpp
@@ -6327,7 +6327,7 @@
 MCAsmParser *llvm::createMCAsmParser(SourceMgr &SM, MCContext &C,
                                      MCStreamer &Out, const MCAsmInfo &MAI,
                                      unsigned CB) {
-  if (C.getTargetTriple().isOSzOS())
+  if (C.getTargetTriple().isSystemZ() && C.getTargetTriple().isOSzOS())
     return new HLASMAsmParser(SM, C, Out, MAI, CB);
 
   return new AsmParser(SM, C, Out, MAI, CB);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103343.348814.patch
Type: text/x-patch
Size: 619 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210531/5caf36c9/attachment.bin>


More information about the llvm-commits mailing list