[PATCH] D13946: Shrink DynTypedNode by one pointer from 40 to 32 bytes (on x86_64).

Samuel Benzaquen via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 09:19:10 PDT 2015

sbenza accepted this revision.
This revision is now accepted and ready to land.

Comment at: include/clang/AST/ASTTypeTraits.h:300
@@ -288,2 +299,3 @@
       if (ASTNodeKind::getFromNodeKind<T>().isBaseOf(NodeKind))
-        return cast<T>(*reinterpret_cast<BaseT *const *>(Storage));
+        return cast<T>(static_cast<const BaseT *>(
+            *reinterpret_cast<const void *const *>(Storage)));
maybe call getUnchecked() to avoid duplication?
Now it is getting complicated.


More information about the cfe-commits mailing list