mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dff57f19a1
commit
15f7d261b5
@ -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…
Reference in New Issue
Block a user