little bug: comments swapped

Hi!

in CGRecordLayout.h
the comments for

unsigned [getLLVMFieldNo](http://clang.llvm.org/doxygen/classclang_1_1CodeGen_1_1CGRecordLayout.html#8c46d13c10ccd30803664fcd83a65a0f)(const [FieldDecl](http://clang.llvm.org/doxygen/classclang_1_1FieldDecl.html) *FD) const
and
const [CGBitFieldInfo](http://clang.llvm.org/doxygen/classclang_1_1CodeGen_1_1CGBitFieldInfo.html) &[getBitFieldInfo](http://clang.llvm.org/doxygen/classclang_1_1CodeGen_1_1CGRecordLayout.html#62dd98b26b76f667df40ad64035c38e3)(const [FieldDecl](http://clang.llvm.org/doxygen/classclang_1_1FieldDecl.html) *FD) const 

are swapped.

It seems [CGRecordLayout](http://clang.llvm.org/doxygen/classclang_1_1CodeGen_1_1CGRecordLayout.html#0839beb026fc875d8ba2651c0743bfdf) contains the info I need,
is there a way to access it after compilation to LLVM IR?

-Jochen


Hi!

in CGRecordLayout.h
the comments for

unsigned getLLVMFieldNo(const FieldDecl *FD) const
and
const CGBitFieldInfo &getBitFieldInfo(const FieldDecl *FD) const

are swapped.

Fixed.

It seems CGRecordLayout contains the info I need,
is there a way to access it after compilation to LLVM IR?

I don't have enough context. If you have access to a CodeGenTypes
instance, you can ask it for the record layouts. You haven't said what
you are trying to do. :slight_smile:

- Daniel