Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ext/standard/JitPack.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@

namespace PHPCompiler\ext\standard;

use PHPCompiler\JIT\Builtin\PackJitRuntime;
use PHPCompiler\JIT\Context;
use PHPCompiler\JIT\JitStringArg;
use PHPCompiler\JIT\JitValueBox;
use PHPCompiler\JIT\Variable as JITVariable;
use PHPLLVM\Value;

/** LLVM JIT/AOT helper for pack() via __compiler_pack. */
/** LLVM JIT/AOT helper for pack() via __compiler_pack (issue #5231). */
final class JitPack
{
public static function pack(Context $context, JITVariable ...$args): Value
{
PackJitRuntime::ensureLinked($context);
$argc = \count($args);
if ($argc < 1) {
throw new \LogicException('pack() requires at least one argument');
Expand Down
Loading