forked from OSchip/llvm-project
Fix -DNDEBUG -Werror build after r229733
llvm-svn: 229736
This commit is contained in:
parent
4dd0304e34
commit
e4450146fa
|
@ -428,6 +428,7 @@ static bool fieldIsScopeRef(const MDNode *DbgNode, unsigned Elt) {
|
|||
return isScopeRef(dyn_cast_or_null<Metadata>(getField(DbgNode, Elt)));
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
/// \brief Check if a value can be a DescriptorRef.
|
||||
static bool isDescriptorRef(const Metadata *MD) {
|
||||
if (!MD)
|
||||
|
@ -436,6 +437,7 @@ static bool isDescriptorRef(const Metadata *MD) {
|
|||
return !S->getString().empty();
|
||||
return isa<MDNode>(MD);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool DIType::Verify() const {
|
||||
if (!isType())
|
||||
|
|
Loading…
Reference in New Issue