[llvm-commits] [poolalloc] r156525 - /poolalloc/trunk/lib/AssistDS/DSNodeEquivs.cpp
Will Dietz
wdietz2 at illinois.edu
Wed May 9 17:51:35 PDT 2012
Author: wdietz2
Date: Wed May 9 19:51:35 2012
New Revision: 156525
URL: http://llvm.org/viewvc/llvm-project?rev=156525&view=rev
Log:
DSNodeEquivs: Don't assert fail if a local graph doesn't have all the globals.
Modified:
poolalloc/trunk/lib/AssistDS/DSNodeEquivs.cpp
Modified: poolalloc/trunk/lib/AssistDS/DSNodeEquivs.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/DSNodeEquivs.cpp?rev=156525&r1=156524&r2=156525&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/DSNodeEquivs.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/DSNodeEquivs.cpp Wed May 9 19:51:35 2012
@@ -174,8 +174,12 @@
const GlobalValue *Global = *GlobalIt;
DSNode *LocalNode = G->getNodeForValue(Global).getNode();
+
+ // It's quite possible this (local) graph doesn't have this global.
+ // If that's the case, there's nothing to do here.
+ if (!LocalNode) continue;
+
DSNode *GlobalNode = GlobalsGr->getNodeForValue(Global).getNode();
- assert(LocalNode && "No node for global in local scalar map?");
assert(GlobalNode && "No node for global in global scalar map?");
// Map the two together and all reachable from each...
More information about the llvm-commits
mailing list