mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
DataLayout: value initialize globals to avoid static construction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195150 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
72935dd909
commit
5903eca0d9
@ -118,7 +118,7 @@ LayoutAlignElem::operator==(const LayoutAlignElem &rhs) const {
|
||||
}
|
||||
|
||||
const LayoutAlignElem
|
||||
DataLayout::InvalidAlignmentElem = LayoutAlignElem::get(INVALID_ALIGN, 0, 0, 0);
|
||||
DataLayout::InvalidAlignmentElem = { INVALID_ALIGN, 0, 0, 0 };
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// PointerAlignElem, PointerAlign support
|
||||
@ -145,7 +145,7 @@ PointerAlignElem::operator==(const PointerAlignElem &rhs) const {
|
||||
}
|
||||
|
||||
const PointerAlignElem
|
||||
DataLayout::InvalidPointerElem = PointerAlignElem::get(~0U, 0U, 0U, 0U);
|
||||
DataLayout::InvalidPointerElem = { 0U, 0U, 0U, ~0U };
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// DataLayout Class Implementation
|
||||
|
Loading…
Reference in New Issue
Block a user