projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d4e867
)
Fixed some "used uninitialized" warnings in opt_expr
author
Clifford Wolf
<clifford@clifford.at>
Sat, 11 Feb 2017 09:50:48 +0000
(10:50 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Sat, 11 Feb 2017 09:50:48 +0000
(10:50 +0100)
passes/opt/opt_expr.cc
patch
|
blob
|
history
diff --git
a/passes/opt/opt_expr.cc
b/passes/opt/opt_expr.cc
index 9ccc230e88f5fade14f20872e078bbd4371f39f3..236908060be7a217581d68694c86dda96e67c6b6 100644
(file)
--- a/
passes/opt/opt_expr.cc
+++ b/
passes/opt/opt_expr.cc
@@
-1242,7
+1242,8
@@
void replace_const_cells(RTLIL::Design *design, RTLIL::Module *module, bool cons
width = cell->parameters["\\B_WIDTH"].as_int();
const_width = cell->parameters["\\A_WIDTH"].as_int();
var_signed = cell->parameters["\\B_SIGNED"].as_bool();
- }
+ } else
+ log_abort();
// replace a(signed) < 0 with the high bit of a
if (sigConst.is_fully_const() && sigConst.is_fully_zero() && var_signed == true)