[PATCH] D157948: [NFC]Fix possibly deref nullptr

Kan Shengchen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 07:41:48 PDT 2023


skan added inline comments.


================
Comment at: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:576
     case WinEH::EncodingType::Itanium:
-      ES = new WinException(this);
+      if (MMI)
+        ES = new WinException(this);
----------------
Why?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157948



More information about the llvm-commits mailing list