summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-11-19 20:28:04 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-11-19 20:28:04 +0000
commit058f5b3804d6d472b2f548dc082a2d51793008be (patch)
tree09b7ae7ebdef1dc2629e97963aa83ccfb045970a /llvm/lib/IR/DataLayout.cpp
parente2bfac497d8aba4419b00c59d880d5c30a6caa27 (diff)
downloadbcm5719-llvm-058f5b3804d6d472b2f548dc082a2d51793008be.tar.gz
bcm5719-llvm-058f5b3804d6d472b2f548dc082a2d51793008be.zip
DataLayout: value initialize globals to avoid static construction.
llvm-svn: 195150
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r--llvm/lib/IR/DataLayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index 6bdc09eaee4..0e4dfc2944f 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -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
OpenPOWER on IntegriCloud