arphaman added inline comments.

================
Comment at: lib/Sema/SemaChecking.cpp:10270
 
+static void setSrcAlign(Expr *SE, CharUnits &SrcAlign, ASTContext &Context) {
+  if (const auto *DRE = dyn_cast<DeclRefExpr>(SE))
----------------
I'm not sure if you can, since I don't really know `CharUnits`, but I think you 
should just return it instead of passing it as a parameter if it's a POD type 
(if you will end up doing that you should rename this function as well).


================
Comment at: lib/Sema/SemaChecking.cpp:10270
 
+static void setSrcAlign(Expr *SE, CharUnits &SrcAlign, ASTContext &Context) {
+  if (const auto *DRE = dyn_cast<DeclRefExpr>(SE))
----------------
arphaman wrote:
> I'm not sure if you can, since I don't really know `CharUnits`, but I think 
> you should just return it instead of passing it as a parameter if it's a POD 
> type (if you will end up doing that you should rename this function as well).
Please add a brief doc comment as well.


https://reviews.llvm.org/D21099



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

Reply via email to