Internals: Have cloning return node's type to avoid casts. No functional change.

This commit is contained in:
Wilson Snyder
2016-11-08 21:16:22 -05:00
parent b582e481c6
commit 183cabc77d
6 changed files with 33 additions and 31 deletions
+1 -1
View File
@@ -509,7 +509,7 @@ private:
// need an alias to trace correctly. If tracing is disabled, we'll
// delete it in later optimizations.
AstVar* pinOldVarp = pinp->modVarp();
AstVar* pinNewVarp = pinOldVarp->clonep()->castVar();
AstVar* pinNewVarp = pinOldVarp->clonep();
AstNode* connectRefp = pinp->exprp();
if (!connectRefp->castConst() && !connectRefp->castVarRef()) {