Explorar el Código

Skip function type inside initilizer.

Xiang Li hace 8 años
padre
commit
9de00de3b4
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      tools/clang/lib/Sema/SemaHLSL.cpp

+ 4 - 0
tools/clang/lib/Sema/SemaHLSL.cpp

@@ -9415,6 +9415,10 @@ bool FlattenedTypeIterator::pushTrackerForType(QualType type, MultiExprArg::iter
     return false;
   }
 
+  if (type->isFunctionType()) {
+    return false;
+  }
+
   if (m_firstType.isNull()) {
     m_firstType = type;
   }