diff options
| -rw-r--r-- | llvm/lib/VMCore/Core.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Core.cpp b/llvm/lib/VMCore/Core.cpp index a044fc5b1a0..5883cdbfbbb 100644 --- a/llvm/lib/VMCore/Core.cpp +++ b/llvm/lib/VMCore/Core.cpp @@ -1215,14 +1215,14 @@ void LLVMSetGC(LLVMValueRef Fn, const char *GC) {  void LLVMAddFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA) {    Function *Func = unwrap<Function>(Fn);    const AttrListPtr PAL = Func->getAttributes(); -  const AttrListPtr PALnew = PAL.addAttr(0, PA); +  const AttrListPtr PALnew = PAL.addAttr(~0U, PA);    Func->setAttributes(PALnew);  }  void LLVMRemoveFunctionAttr(LLVMValueRef Fn, LLVMAttribute PA) {    Function *Func = unwrap<Function>(Fn);    const AttrListPtr PAL = Func->getAttributes(); -  const AttrListPtr PALnew = PAL.removeAttr(0, PA); +  const AttrListPtr PALnew = PAL.removeAttr(~0U, PA);    Func->setAttributes(PALnew);  }  | 

