diff options
author | Renato Golin <renato.golin@linaro.org> | 2013-11-26 16:47:00 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2013-11-26 16:47:00 +0000 |
commit | 47f46fd42c113a8d5323d4cee64817bb5c7532f4 (patch) | |
tree | 5edd4c47b12c214c3c01e64f27e603d01252fcad /llvm/lib/IR/DebugInfo.cpp | |
parent | d5144879f92995af9dfd2fdc4c429d9df1238d71 (diff) | |
download | bcm5719-llvm-47f46fd42c113a8d5323d4cee64817bb5c7532f4.tar.gz bcm5719-llvm-47f46fd42c113a8d5323d4cee64817bb5c7532f4.zip |
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
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index 5dcc6f6590b..b15743cf380 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -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; |