diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-07-26 16:45:57 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-07-26 16:45:57 +0200 |
commit | f4a7478a406c841d7938985ee5611fbf73aa7b02 (patch) | |
tree | 36d0e6c2598c1cb0a1ab90b66e4d9f8abaabde74 /common | |
parent | 467e0926f920f23b7cb2241cf52dbcfe84646fed (diff) | |
download | nextpnr-f4a7478a406c841d7938985ee5611fbf73aa7b02.tar.gz nextpnr-f4a7478a406c841d7938985ee5611fbf73aa7b02.tar.bz2 nextpnr-f4a7478a406c841d7938985ee5611fbf73aa7b02.zip |
Fix router1 locking in NDEBUG builds
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'common')
-rw-r--r-- | common/router1.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/router1.cc b/common/router1.cc index fbf3c467..8a05236f 100644 --- a/common/router1.cc +++ b/common/router1.cc @@ -810,14 +810,14 @@ bool router1(Context *ctx) log_info("Checksum: 0x%08x\n", ctx->checksum()); #ifndef NDEBUG ctx->check(); - ctx->unlock(); #endif + ctx->unlock(); return true; } catch (log_execution_error_exception) { #ifndef NDEBUG ctx->check(); - ctx->unlock(); #endif + ctx->unlock(); return false; } } |