Ignore:
Timestamp:
Oct 31, 2014, 10:37:25 AM (11 years ago)
Author:
Chris Dumez
Message:

Fix a couple of warnings in JSC reported by clang static analyzer
https://bugs.webkit.org/show_bug.cgi?id=138240

Reviewed by Geoffrey Garen.

Fix a couple of warnings in JSC reported by clang static analyzer about
value stored in variables never being read. This is addressed by
reducing the scope of the variable or removing the variable entirely.

  • dfg/DFGConstantFoldingPhase.cpp:

(JSC::DFG::ConstantFoldingPhase::emitGetByOffset):

  • runtime/VM.cpp:

(JSC::VM::throwException):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGConstantFoldingPhase.cpp

    r173993 r175411  
    493493        NodeOrigin origin = node->origin;
    494494        Edge childEdge = node->child1();
    495         Node* child = childEdge.node();
    496495
    497496        addBaseCheck(indexInBlock, node, baseValue, variant.structureSet());
     
    508507       
    509508        if (variant.alternateBase()) {
    510             child = m_insertionSet.insertConstant(indexInBlock, origin, variant.alternateBase());
     509            Node* child = m_insertionSet.insertConstant(indexInBlock, origin, variant.alternateBase());
    511510            childEdge = Edge(child, KnownCellUse);
    512511        } else
Note: See TracChangeset for help on using the changeset viewer.