Fixed Cppcheck warning; Redundant assignment
This commit is contained in:
parent
75f2ab20e8
commit
0b98053790
|
@ -2121,8 +2121,6 @@ static ExprEngine::ValuePtr executeCast(const Token *tok, Data &data)
|
||||||
if (!tok->valueType() || expr->valueType()->pointer < tok->valueType()->pointer)
|
if (!tok->valueType() || expr->valueType()->pointer < tok->valueType()->pointer)
|
||||||
return std::make_shared<ExprEngine::UninitValue>();
|
return std::make_shared<ExprEngine::UninitValue>();
|
||||||
|
|
||||||
::ValueType vt(*tok->valueType());
|
|
||||||
vt.pointer = 0;
|
|
||||||
auto range = std::make_shared<ExprEngine::UninitValue>();
|
auto range = std::make_shared<ExprEngine::UninitValue>();
|
||||||
|
|
||||||
if (tok->valueType()->pointer == 0)
|
if (tok->valueType()->pointer == 0)
|
||||||
|
|
Loading…
Reference in New Issue