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() {