aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler')
-rw-r--r--src/qmlcompiler/qqmljscompiler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/qmlcompiler/qqmljscompiler.cpp b/src/qmlcompiler/qqmljscompiler.cpp
index 8f49817851..36b7ee046b 100644
--- a/src/qmlcompiler/qqmljscompiler.cpp
+++ b/src/qmlcompiler/qqmljscompiler.cpp
@@ -217,6 +217,17 @@ bool qCompileQmlFile(const QString &inputFileName, QQmlJSSaveFunction saveFuncti
aotCompiler->setScopeObject(object);
std::for_each(object->bindingsBegin(), object->bindingsEnd(), [&](const QmlIR::Binding &binding) {
+
+ switch (binding.type) {
+ case QmlIR::Binding::Type_Boolean:
+ case QmlIR::Binding::Type_Number:
+ case QmlIR::Binding::Type_String:
+ case QmlIR::Binding::Type_Null:
+ return;
+ default:
+ break;
+ }
+
auto result = aotCompiler->compileBinding(binding);
if (auto *error = std::get_if<QQmlJS::DiagnosticMessage>(&result)) {
qCDebug(lcAotCompiler()) << "Could not compile binding:"