aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-05-01 10:48:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-05-01 10:48:02 +0000
commit030a3415b0ddd15c532e37892bd7ebdbef8a35b6 (patch)
tree94a42ef8b5a8611ad9a72d4603a64c503e8772b8
parentc201e6eaf165c83f0092c43b371e509fa8eaf4cc (diff)
downloadexternal_llvm-030a3415b0ddd15c532e37892bd7ebdbef8a35b6.zip
external_llvm-030a3415b0ddd15c532e37892bd7ebdbef8a35b6.tar.gz
external_llvm-030a3415b0ddd15c532e37892bd7ebdbef8a35b6.tar.bz2
Value-initialize global to avoid global construction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155909 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/TargetData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp
index acb7476..cc6dc1e 100644
--- a/lib/Target/TargetData.cpp
+++ b/lib/Target/TargetData.cpp
@@ -117,8 +117,8 @@ TargetAlignElem::operator==(const TargetAlignElem &rhs) const {
&& TypeBitWidth == rhs.TypeBitWidth);
}
-const TargetAlignElem TargetData::InvalidAlignmentElem =
- TargetAlignElem::get((AlignTypeEnum) -1, 0, 0, 0);
+const TargetAlignElem
+TargetData::InvalidAlignmentElem = { (AlignTypeEnum)0xFF, 0, 0, 0 };
//===----------------------------------------------------------------------===//
// TargetData Class Implementation