mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Fix -DNDEBUG -Werror build after r229733
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229736 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae09ebc540
commit
f866bfc6aa
@ -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…
x
Reference in New Issue
Block a user