[llvm-commits] [llvm] r155909 - /llvm/trunk/lib/Target/TargetData.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue May 1 03:48:02 PDT 2012


Author: d0k
Date: Tue May  1 05:48:02 2012
New Revision: 155909

URL: http://llvm.org/viewvc/llvm-project?rev=155909&view=rev
Log:
Value-initialize global to avoid global construction.

Modified:
    llvm/trunk/lib/Target/TargetData.cpp

Modified: llvm/trunk/lib/Target/TargetData.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetData.cpp?rev=155909&r1=155908&r2=155909&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetData.cpp (original)
+++ llvm/trunk/lib/Target/TargetData.cpp Tue May  1 05:48:02 2012
@@ -117,8 +117,8 @@
           && 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





More information about the llvm-commits mailing list