Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-96587

qmlsc ignores return type of CallPropertyLookup

    XMLWordPrintable

Details

    • 88aea5173f5bb7d900a4a3220ba44a2632262624 (qt/qtdeclarative/dev) 482aed2e033cd75be3f07a965dcaa7f3722b2395 (qt/qtdeclarative/6.2)

    Description

      example:

      QtObject {
          property string blockSrc: "Something.qml"
          property Component blockComponent: Qt.createComponent(blockSrc)
      }
      

      generates:

      // generate_CallPropertyLookup
      {
      r2_1 = {};
      void *args[] = { nullptr, &r10_1 };
      const QMetaType types[] = { QMetaType(), QMetaType::fromType<QString>() };
      while (!aotContext->callObjectPropertyLookup(6, r7_1, args, types, 1)) {
      aotContext->setInstructionPointer(8);
      aotContext->initCallObjectPropertyLookup(6);
      if (aotContext->engine->hasError())
          return static_cast<QObject *>(nullptr);
      }
      }
      {
      }
      {
      }
      // generate_Ret
      if (r2_1.type() == QJSPrimitiveValue::Undefined)
          aotContext->setReturnValueUndefined();
      return static_cast<QObject *>(nullptr);
      

      Obviously this makes no sense.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes