mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[AIX][TLS] Add assert check of valid csect type for the storage mapping class XCOFF::XMC_UL
This patch adds the assert check inside the constructor for the csect (MCSectionXCOFF) to ensure valid csect type used for the storage mappping class XCOFF:XMC_UL.
This commit is contained in:
parent
6d06088eb6
commit
bf9b8e5d70
@ -51,6 +51,9 @@ class MCSectionXCOFF final : public MCSection {
|
||||
(ST == XCOFF::XTY_SD || ST == XCOFF::XTY_CM || ST == XCOFF::XTY_ER) &&
|
||||
"Invalid or unhandled type for csect.");
|
||||
assert(QualName != nullptr && "QualName is needed.");
|
||||
if (SMC == XCOFF::XMC_UL)
|
||||
assert((ST == XCOFF::XTY_CM || ST == XCOFF::XTY_ER) &&
|
||||
"Invalid csect type for storage mapping class XCOFF::XMC_UL");
|
||||
|
||||
QualName->setRepresentedCsect(this);
|
||||
QualName->setStorageClass(XCOFF::C_HIDEXT);
|
||||
|
Loading…
Reference in New Issue
Block a user