// Add return type. A void return won't have a type.
auto Elements = cast<MDSubroutineType>(CTy)->getTypeArray();
if (Elements.size())
- if (MDType *RTy = resolve(DITypeRef(Elements[0])))
+ if (MDType *RTy = resolve(DITypeRef(Elements[0u])))
addType(Buffer, RTy);
bool isPrototyped = true;
- if (Elements.size() == 2 && !DITypeRef(Elements[1]))
+ if (Elements.size() == 2 && !DITypeRef(Elements[1u]))
isPrototyped = false;
constructSubprogramArguments(Buffer, Elements);
// Add a return type. If this is a type like a C/C++ void type we don't add a
// return type.
if (Args.size())
- if (MDType *Ty = resolve(DITypeRef(Args[0])))
+ if (MDType *Ty = resolve(DITypeRef(Args[0u])))
addType(SPDie, Ty);
unsigned VK = SP.getVirtuality();