aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
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
commit3aef571287c64b2fad36761050470914fa4a76da (patch)
tree530639eb3cfe042791670f5f82edd5043f88c713 /include/llvm
parent2cbdc45f351aaccd63e612897cd57792a7f6360a (diff)
downloadexternal_llvm-3aef571287c64b2fad36761050470914fa4a76da.zip
external_llvm-3aef571287c64b2fad36761050470914fa4a76da.tar.gz
external_llvm-3aef571287c64b2fad36761050470914fa4a76da.tar.bz2
Make sure to initialize the alignment field
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/GlobalValue.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/GlobalValue.h b/include/llvm/GlobalValue.h
index a6db31d..a3b3cde 100644
--- a/include/llvm/GlobalValue.h
+++ b/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;