From 767ac2547d63009a7f0117af4a9afd760a156748 Mon Sep 17 00:00:00 2001 From: John Coiner Date: Tue, 10 Apr 2018 22:05:55 -0400 Subject: [PATCH] Misc clang warning fixes. Signed-off-by: Wilson Snyder --- src/V3LifePost.cpp | 2 +- src/V3String.cpp | 3 ++- test_regress/t/t_sys_sformat_noopt.pl | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/V3LifePost.cpp b/src/V3LifePost.cpp index 10c69396c..c5e37af8a 100644 --- a/src/V3LifePost.cpp +++ b/src/V3LifePost.cpp @@ -110,7 +110,7 @@ class LifePostDlyVisitor : public LifePostBaseVisitor { private: // NODE STATE // Cleared on entire tree - // AstVarScope::user() -> Sequence # of first virtex setting this var. + // AstVarScope::user() -> Sequence # of first vertex setting this var. // AstVarScope::user2() -> Sequence # of last consumption of this var // AstVarScope::user4() -> AstVarScope*: Passed to LifePostElim to substitute this var AstUser1InUse m_inuser1; diff --git a/src/V3String.cpp b/src/V3String.cpp index 4562ca9f8..ab06bc4d5 100644 --- a/src/V3String.cpp +++ b/src/V3String.cpp @@ -220,7 +220,8 @@ uint64_t VHashSha1::digestUInt64() { const string& binhash = digestBinary(); uint64_t out = 0; for (size_t byte=0; byte ["-O0"], ); -if ($Self->cxx_version =~ /clang version 3.8/) { +if ($Self->cxx_version =~ /clang version ([0-9]+\.[0-9]+)/ + && ($1 >= 3.8 && $1 <= 5.0)) { $Self->skip("Known clang bug"); #Here: if (VL_UNLIKELY(VL_NEQ_W(12, __Vtemp1, vlSymsp->TOP__t.__PVT__str))) } else{