[llvm-commits] [poolalloc] r166140 - /poolalloc/branches/release_30/lib/DSA/SanityCheck.cpp
John Criswell
criswell at uiuc.edu
Wed Oct 17 16:07:56 PDT 2012
Author: criswell
Date: Wed Oct 17 18:07:56 2012
New Revision: 166140
URL: http://llvm.org/viewvc/llvm-project?rev=166140&view=rev
Log:
Fixed another optimized build problem.
No functionality change.
Modified:
poolalloc/branches/release_30/lib/DSA/SanityCheck.cpp
Modified: poolalloc/branches/release_30/lib/DSA/SanityCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/branches/release_30/lib/DSA/SanityCheck.cpp?rev=166140&r1=166139&r2=166140&view=diff
==============================================================================
--- poolalloc/branches/release_30/lib/DSA/SanityCheck.cpp (original)
+++ poolalloc/branches/release_30/lib/DSA/SanityCheck.cpp Wed Oct 17 18:07:56 2012
@@ -87,11 +87,15 @@
// of the load is loaded.
//
DSNode::LinkMapTy::iterator linki = PtrNode->edge_begin();
+#ifndef NDEBUG
bool found = false;
+#endif
for (; linki != PtrNode->edge_end(); ++linki) {
DSNodeHandle & LinkNode = linki->second;
if (LinkNode.getNode() == ResultNode) {
+#ifndef NDEBUG
found = true;
+#endif
}
}
More information about the llvm-commits
mailing list