From 4ced16dd2efd1793bd5c294c807d75737a06e7f6 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 18 Jul 2016 22:12:46 +0000 Subject: [PATCH] Fix -Wreturn-type with gcc 4.8 and libc++ llvm-svn: 275922 --- llvm/lib/IR/Attributes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index d774c1a..4dfeacf 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -1158,7 +1158,7 @@ uint64_t AttributeSet::getDereferenceableOrNullBytes(unsigned Index) const { std::pair> AttributeSet::getAllocSizeArgs(unsigned Index) const { AttributeSetNode *ASN = getAttributes(Index); - return ASN ? ASN->getAllocSizeArgs() : std::make_pair(0, 0); + return ASN ? ASN->getAllocSizeArgs() : std::make_pair(0u, Optional(0u)); } std::string AttributeSet::getAsString(unsigned Index, bool InAttrGrp) const { -- 2.7.4