mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-06 03:19:50 +00:00
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:
parent
83455f2b60
commit
3594306ff3
@ -461,11 +461,11 @@ bool DIType::Verify() const {
|
||||
// DIType is abstract, it should be a BasicType, a DerivedType or
|
||||
// a CompositeType.
|
||||
if (isBasicType())
|
||||
DIBasicType(DbgNode).Verify();
|
||||
return DIBasicType(DbgNode).Verify();
|
||||
else if (isCompositeType())
|
||||
DICompositeType(DbgNode).Verify();
|
||||
return DICompositeType(DbgNode).Verify();
|
||||
else if (isDerivedType())
|
||||
DIDerivedType(DbgNode).Verify();
|
||||
return DIDerivedType(DbgNode).Verify();
|
||||
else
|
||||
return false;
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user