aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2018-07-09 07:58:47 +0000
committerDavid Shah <davey1576@gmail.com>2018-07-09 07:58:47 +0000
commitf4c62e233cfc3e626501c4dbe30e596fa9e43d77 (patch)
treeba264b8e41af65abdd24beb23d466eb7102a001a
parent044e46b0adbab8beaeee208e7e0f88dee1fdeae9 (diff)
parent18c93104be19d0099d50fba364b94ead61623a8c (diff)
downloadnextpnr-f4c62e233cfc3e626501c4dbe30e596fa9e43d77.tar.gz
nextpnr-f4c62e233cfc3e626501c4dbe30e596fa9e43d77.tar.bz2
nextpnr-f4c62e233cfc3e626501c4dbe30e596fa9e43d77.zip
Merge branch 'speedup_assert' into 'master'
NPNR_ASSERT not to implicitly construct strings See merge request SymbioticEDA/nextpnr!6
-rw-r--r--common/nextpnr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/nextpnr.h b/common/nextpnr.h
index ec0c2f9f..37e193b9 100644
--- a/common/nextpnr.h
+++ b/common/nextpnr.h
@@ -72,7 +72,7 @@ class assertion_failure : public std::runtime_error
int line;
};
-inline void except_assert_impl(bool expr, std::string message, std::string expr_str, std::string filename, int line)
+inline void except_assert_impl(bool expr, const char *message, const char *expr_str, const char *filename, int line)
{
if (!expr)
throw assertion_failure(message, expr_str, filename, line);