[clang] [llvm] [AIX][TOC] Add -mtocdata/-mno-tocdata options on AIX (PR #67999)

Amy Kwan via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 15 17:53:53 PST 2024


================
@@ -82,8 +82,7 @@ void MCSectionXCOFF::printSwitchToSection(const MCAsmInfo &MAI, const Triple &T,
   }
 
   if (isCsect() && getMappingClass() == XCOFF::XMC_TD) {
-    assert((getKind().isBSSExtern() || getKind().isBSSLocal()) &&
-           "Unexepected section kind for toc-data");
+    assert(getKind().isBSS() && "Unexepected section kind for toc-data");
----------------
amy-kwan wrote:

```suggestion
    assert(getKind().isBSS() && "Unexpected section kind for toc-data");
```

https://github.com/llvm/llvm-project/pull/67999


More information about the cfe-commits mailing list