Add return to DIType::Verify
authorRenato Golin <renato.golin@linaro.org>
Tue, 26 Nov 2013 16:47:00 +0000 (16:47 +0000)
committerRenato Golin <renato.golin@linaro.org>
Tue, 26 Nov 2013 16:47:00 +0000 (16:47 +0000)
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

lib/IR/DebugInfo.cpp

index 5dcc6f6590bf6c3d8117d36223c52c4a0101cf8b..b15743cf38063735989d59f2d17e45781856390e 100644 (file)
@@ -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;