[PATCH] D74166: [AIX][Frontend] Static init implementation for AIX considering no priority

David Tenty via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 30 08:29:46 PDT 2020


daltenty added inline comments.


================
Comment at: clang/lib/CodeGen/CGDeclCXX.cpp:583
+  if (UseSinitAndSterm)
+    GlobalUniqueModuleId = getUniqueModuleId(&getModule()).substr(1);
+
----------------
if `getUniqueModuleId()` returns an empy string, which it does for modules which don't export any symbols, the `substr()` will throw an `OutOfRange` exception.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D74166





More information about the cfe-commits mailing list