Changeset 45791 in webkit for trunk/JavaScriptCore/bytecompiler


Ignore:
Timestamp:
Jul 13, 2009, 1:20:08 AM (16 years ago)
Author:
Simon Hausmann
Message:

2009-07-13 Norbert Leser <[email protected]>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=27053

Ambiguity in LabelScope initialization

Codewarrior compiler (WINSCW) latest b482 on Symbian cannot resolve
type of "0" unambiguously. Set expression explicitly to
PassRefPtr<Label>::PassRefPtr()

  • bytecompiler/BytecodeGenerator.cpp
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r45609 r45791  
    522522
    523523    // Allocate new label scope.
    524     LabelScope scope(type, name, scopeDepth(), newLabel(), type == LabelScope::Loop ? newLabel() : 0); // Only loops have continue targets.
     524    LabelScope scope(type, name, scopeDepth(), newLabel(), type == LabelScope::Loop ? newLabel() : PassRefPtr<Label>()); // Only loops have continue targets.
    525525    m_labelScopes.append(scope);
    526526    return &m_labelScopes.last();
Note: See TracChangeset for help on using the changeset viewer.