mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Misc clang warning fixes.
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
parent
a46aa2d62b
commit
767ac2547d
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user