Add return to DIType::Verify

Code scanner ran by Sylvestre Ledru got a no_return bug
in DebugInfo.cpp. Adding the return statements that
should be there.

llvm-svn: 195772
This commit is contained in:
Renato Golin 2013-11-26 16:47:00 +00:00
parent d5144879f9
commit 47f46fd42c

View File

@ -461,11 +461,11 @@ bool DIType::Verify() const {
// DIType is abstract, it should be a BasicType, a DerivedType or // DIType is abstract, it should be a BasicType, a DerivedType or
// a CompositeType. // a CompositeType.
if (isBasicType()) if (isBasicType())
DIBasicType(DbgNode).Verify(); return DIBasicType(DbgNode).Verify();
else if (isCompositeType()) else if (isCompositeType())
DICompositeType(DbgNode).Verify(); return DICompositeType(DbgNode).Verify();
else if (isDerivedType()) else if (isDerivedType())
DIDerivedType(DbgNode).Verify(); return DIDerivedType(DbgNode).Verify();
else else
return false; return false;
return true; return true;