mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 09:22:31 +00:00
Fix -Wreturn-type with gcc 4.8 and libc++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
94471e314e
commit
ec2cddd2d1
@ -1158,7 +1158,7 @@ uint64_t AttributeSet::getDereferenceableOrNullBytes(unsigned Index) const {
|
||||
std::pair<unsigned, Optional<unsigned>>
|
||||
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<unsigned>(0u));
|
||||
}
|
||||
|
||||
std::string AttributeSet::getAsString(unsigned Index, bool InAttrGrp) const {
|
||||
|
Loading…
x
Reference in New Issue
Block a user