summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-06 08:22:18 +0000
committerChris Lattner <sabre@nondot.org>2005-11-06 08:22:18 +0000
commitd5286ba3d5f61739025e8060313ee6378a6280f3 (patch)
treebe0bdb6e4fe33657ac434398d87ba373a9f8d39d
parent54611b4af1f1a9ece93bfa8fbc5a36bc3db64982 (diff)
downloadbcm5719-llvm-d5286ba3d5f61739025e8060313ee6378a6280f3.tar.gz
bcm5719-llvm-d5286ba3d5f61739025e8060313ee6378a6280f3.zip
Make sure to initialize the alignment field
llvm-svn: 24222
-rw-r--r--llvm/include/llvm/GlobalValue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/GlobalValue.h b/llvm/include/llvm/GlobalValue.h
index a6db31dc9b1..a3b3cde85da 100644
--- a/llvm/include/llvm/GlobalValue.h
+++ b/llvm/include/llvm/GlobalValue.h
@@ -38,7 +38,8 @@ public:
protected:
GlobalValue(const Type *Ty, ValueTy vty, Use *Ops, unsigned NumOps,
LinkageTypes linkage, const std::string &name = "")
- : Constant(Ty, vty, Ops, NumOps, name), Linkage(linkage), Parent(0) { }
+ : Constant(Ty, vty, Ops, NumOps, name), Linkage(linkage),
+ Parent(0), Alignment(0) { }
LinkageTypes Linkage; // The linkage of this global
Module *Parent;
OpenPOWER on IntegriCloud