From: Renato Golin Date: Tue, 26 Nov 2013 16:47:00 +0000 (+0000) Subject: Add return to DIType::Verify X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=15f7d261b5443e3b2259480ccd7bbcd1de5bfc54;p=oota-llvm.git 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 --- diff --git a/lib/IR/DebugInfo.cpp b/lib/IR/DebugInfo.cpp index 5dcc6f6590b..b15743cf380 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;