OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae09ebc
)
Fix -DNDEBUG -Werror build after r229733
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Wed, 18 Feb 2015 19:56:50 +0000
(19:56 +0000)
committer
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Wed, 18 Feb 2015 19:56:50 +0000
(19:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229736
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/DebugInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/DebugInfo.cpp
b/lib/IR/DebugInfo.cpp
index
c39c119
..
92d7e45
100644
(file)
--- a/
lib/IR/DebugInfo.cpp
+++ b/
lib/IR/DebugInfo.cpp
@@
-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())