Changeset 60595 in webkit for trunk/JavaScriptCore/pcre


Ignore:
Timestamp:
Jun 2, 2010, 8:15:51 PM (15 years ago)
Author:
[email protected]
Message:

<rdar://problem/8054988> Work around an LLVM GCC code generation bug that results in crashes inside PCRE.

Reviewed by Gavin Barraclough.

  • pcre/pcre_exec.cpp:

(repeatInformationFromInstructionOffset): Change the type of instructionOffset to int. There's no good
reason for it to be a short, and using int prevents this code from triggering the LLVM GCC bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/pcre/pcre_exec.cpp

    r57226 r60595  
    428428
    429429// FIXME: "minimize" means "not greedy", we should invert the callers to ask for "greedy" to be less confusing
    430 static inline void repeatInformationFromInstructionOffset(short instructionOffset, bool& minimize, int& minimumRepeats, int& maximumRepeats)
     430static inline void repeatInformationFromInstructionOffset(int instructionOffset, bool& minimize, int& minimumRepeats, int& maximumRepeats)
    431431{
    432432    // Instruction offsets are based off of OP_CRSTAR, OP_STAR, OP_TYPESTAR, OP_NOTSTAR
Note: See TracChangeset for help on using the changeset viewer.