diff --git a/polly/lib/Transform/DeLICM.cpp b/polly/lib/Transform/DeLICM.cpp index bf9aea1d6cab..38430951fee6 100644 --- a/polly/lib/Transform/DeLICM.cpp +++ b/polly/lib/Transform/DeLICM.cpp @@ -1593,6 +1593,11 @@ public: /// Dump the internal information about a performed DeLICM to @p OS. void print(llvm::raw_ostream &OS, int indent = 0) { + if (!Zone.isUsable()) { + OS << "Zone not computed\n"; + return; + } + printAccesses(OS, indent); } };