[PATCH] D55862: [Sema] Don't try to account for the size of an incomplete type in CheckArrayAccess

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 19 11:45:42 PST 2018


efriedma added inline comments.


================
Comment at: lib/Sema/SemaChecking.cpp:12357
+      Context.getAsConstantArrayType(BaseExpr->getType());
+  const Type *BaseType = BaseExpr->getType()->getPointeeOrArrayElementType();
+
----------------
Using getPointeeOrArrayElementType here is kind of confusing; instead, we can just call `ArrayTy->getElementType()`.


Repository:
  rC Clang

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

https://reviews.llvm.org/D55862





More information about the cfe-commits mailing list