]> granicus.if.org Git - clang/commitdiff
This is slightly contentious, but, if llvm has gone to addressable
authorMike Stump <mrs@apple.com>
Mon, 5 Oct 2009 23:40:59 +0000 (23:40 +0000)
committerMike Stump <mrs@apple.com>
Mon, 5 Oct 2009 23:40:59 +0000 (23:40 +0000)
units, we should as well.  The problem is the non-predictability of
the dimension of the values.  I'd love for the dimension to be part of
the static type system...  but in C++ it is kinda annoying to do.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83345 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Attr.h

index f7a47364a7f611a5dd49a0c637726d74ac400de8..6a5e3666a92c46c91fa5cb9dc7ec1c59d84701a5 100644 (file)
@@ -185,6 +185,7 @@ class AlignedAttr : public Attr {
 public:
   AlignedAttr(unsigned alignment) : Attr(Aligned), Alignment(alignment) {}
 
+  // FIXME: Should use addressable units, not bits, to match llvm
   /// getAlignment - The specified alignment in bits.
   unsigned getAlignment() const { return Alignment; }