mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 10:01:11 +02:00
Use VN_AS wherever possible and obvious. No functional change.
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ private:
|
||||
VL_DEBUG_FUNC; // Declare debug()
|
||||
|
||||
AstVar* findCreateVarTemp(FileLine* fl, AstCFunc* cfuncp) {
|
||||
AstVar* varp = VN_CAST(cfuncp->user1p(), Var);
|
||||
AstVar* varp = VN_AS(cfuncp->user1p(), Var);
|
||||
if (!varp) {
|
||||
const string newvarname = string("__Vilp");
|
||||
varp = new AstVar(fl, AstVarType::STMTTEMP, newvarname, VFlagLogicPacked(), 32);
|
||||
|
||||
Reference in New Issue
Block a user