[PATCH] Fix for Bug 18536 - Bad alignment in clang/AST/StmpOpenMP.h

Alexey Bataev a.bataev at hotmail.com
Wed Feb 19 02:03:18 PST 2014



================
Comment at: include/clang/AST/StmtOpenMP.h:84
@@ +83,3 @@
+                   reinterpret_cast<char *>(this) +
+                   llvm::RoundUpToAlignment(sizeof(T), sizeof(Expr *))),
+            NumVars);
----------------
Doug Gregor wrote:
> The second argument here should be llvm::alignOf<Expr*>(), shouldn't it?
Doug, thanks, you right.


http://llvm-reviews.chandlerc.com/D2713



More information about the cfe-commits mailing list