From 81b2ab8a249c3652133a1dcc0209343cde9b499f Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 2 Sep 2008 20:51:15 +0000 Subject: [PATCH] Initialize function notes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55645 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Function.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index c1a96de0a77..c1546a8e53f 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -173,6 +173,8 @@ Function::Function(const FunctionType *Ty, LinkageTypes Linkage, // Ensure intrinsics have the right parameter attributes. if (unsigned IID = getIntrinsicID(true)) setParamAttrs(Intrinsic::getParamAttrs(Intrinsic::ID(IID))); + + Notes = 0; } Function::~Function() {