From 030a3415b0ddd15c532e37892bd7ebdbef8a35b6 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 1 May 2012 10:48:02 +0000 Subject: [PATCH] Value-initialize global to avoid global construction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155909 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/TargetData.cpp b/lib/Target/TargetData.cpp index acb74765c19..cc6dc1e2599 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