erichkeane added inline comments.

================
Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:290
+
+    if (!ArgType->isConstantSizeType() ||
+        ArgType->isDependentType())
----------------
Documentation for `isConstantSizedType` says it isn't legal to call it on 
dependent or incomplete types.  so this probably needs to be:

``` if (ArgType->isDependentType() || ArgType->isIncompleteType() || 
!ArgType->isConstantSizedType())```

In roughly that order.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133934/new/

https://reviews.llvm.org/D133934

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to