Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: src/IceCfg.cpp

Issue 1890283002: Subzero, Wasm: Link and run torture tests; bug fixes. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceCfg.cpp
diff --git a/src/IceCfg.cpp b/src/IceCfg.cpp
index bb738a78c7d541b152ada34ace53659b65f3feb1..db2904d1f724ef4bb595487a122fe845a6024ccc 100644
--- a/src/IceCfg.cpp
+++ b/src/IceCfg.cpp
@@ -261,8 +261,9 @@ void Cfg::fixPhiNodes() {
void Cfg::computeInOutEdges() {
// Compute the out-edges.
- for (CfgNode *Node : Nodes)
+ for (CfgNode *Node : Nodes) {
Node->computeSuccessors();
+ }
// Prune any unreachable nodes before computing in-edges.
SizeT NumNodes = getNumNodes();
@@ -599,6 +600,7 @@ void Cfg::processAllocas(bool SortAndCombine) {
TimerMarker _(TimerStack::TT_alloca, this);
const uint32_t StackAlignment = getTarget()->getStackAlignment();
CfgNode *EntryNode = getEntryNode();
+ assert(EntryNode);
// LLVM enforces power of 2 alignment.
assert(llvm::isPowerOf2_32(StackAlignment));
// Determine if there are large alignment allocations in the entry block or
« fetch-torture-tests.sh ('K') | « runtime/wasm-runtime.c ('k') | src/IceCfgNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698