summaryrefslogtreecommitdiff
path: root/lib/IR/DebugInfo.cpp
diff options
context:
space:
mode:
authorRenato Golin <renato.golin@linaro.org>2013-11-26 16:47:00 +0000
committerRenato Golin <renato.golin@linaro.org>2013-11-26 16:47:00 +0000
commit15f7d261b5443e3b2259480ccd7bbcd1de5bfc54 (patch)
tree3f96df40555568dc5f264986eff9f9c647d5eed4 /lib/IR/DebugInfo.cpp
parentdff57f19a14560e7ce9d5dbba17a62f1cb85021e (diff)
downloadllvm-15f7d261b5443e3b2259480ccd7bbcd1de5bfc54.tar.gz
llvm-15f7d261b5443e3b2259480ccd7bbcd1de5bfc54.tar.bz2
llvm-15f7d261b5443e3b2259480ccd7bbcd1de5bfc54.tar.xz
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
Diffstat (limited to 'lib/IR/DebugInfo.cpp')
-rw-r--r--lib/IR/DebugInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp
index 5dcc6f6590..b15743cf38 100644
--- a/lib/IR/DebugInfo.cpp
+++ b/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;