Misc clang warning fixes.

Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
John Coiner 2018-04-10 22:05:55 -04:00 committed by Wilson Snyder
parent a46aa2d62b
commit 767ac2547d
3 changed files with 5 additions and 3 deletions

View File

@ -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;

View File

@ -220,7 +220,8 @@ uint64_t VHashSha1::digestUInt64() {
const string& binhash = digestBinary();
uint64_t out = 0;
for (size_t byte=0; byte<sizeof(uint64_t); ++byte) {
out = (out<<8) | binhash[byte];
unsigned char c = binhash[byte];
out = (out<<8) | c;
}
return out;
}

View File

@ -14,7 +14,8 @@ compile (
verilator_flags2 => ["-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{