diff options
Diffstat (limited to 'source/opt/pass.cpp')
-rw-r--r-- | source/opt/pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/opt/pass.cpp b/source/opt/pass.cpp index 09b78af9..017aad10 100644 --- a/source/opt/pass.cpp +++ b/source/opt/pass.cpp @@ -43,8 +43,8 @@ Pass::Status Pass::Run(IRContext* ctx) { if (status == Status::SuccessWithChange) { ctx->InvalidateAnalysesExceptFor(GetPreservedAnalyses()); } - assert((status == Status::Failure || ctx->IsConsistent()) && - "An analysis in the context is out of date."); + if (!(status == Status::Failure || ctx->IsConsistent())) + assert(false && "An analysis in the context is out of date."); return status; } |