rsmith added inline comments.

================
Comment at: lib/Sema/SemaChecking.cpp:11356-11357
+  // Compute the EffectiveAlignment as the alignment of the whole chain.
+  CharUnits EffectiveAlignment = Context.getTypeAlignInChars(
+      ReverseMemberChain.back()->getParent()->getTypeForDecl());
+
----------------
In order to fix Joerg's latest false positives, you need to look at the type of 
the base expression itself rather than the class type containing the innermost 
member. (The base expression's type might provide more alignment than the 
struct being accessed guarantees.)


https://reviews.llvm.org/D23657



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

Reply via email to