mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 13:58:49 +00:00
Don't mark MGetFirstDollarIndex as movable.
This commit is contained in:
+4
-1
@@ -8272,7 +8272,10 @@ class MGetFirstDollarIndex
|
||||
: MUnaryInstruction(str)
|
||||
{
|
||||
setResultType(MIRType::Int32);
|
||||
setMovable();
|
||||
|
||||
// Codegen assumes string length > 0 but that's not guaranteed in RegExp.
|
||||
// Don't allow LICM to move this.
|
||||
MOZ_ASSERT(!isMovable());
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user