[cfe-commits] r116273 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Fariborz Jahanian fjahanian at apple.com
Mon Oct 11 16:55:48 PDT 2010


Author: fjahanian
Date: Mon Oct 11 18:55:47 2010
New Revision: 116273

URL: http://llvm.org/viewvc/llvm-project?rev=116273&view=rev
Log:
Fixes a typo which caused byte offset in debug info 
for ivars to be 0. Fixes pr8353.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=116273&r1=116272&r2=116273&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Oct 11 18:55:47 2010
@@ -1125,7 +1125,7 @@
 
   unsigned FieldNo = 0;
   for (ObjCIvarDecl *Field = ID->all_declared_ivar_begin(); Field;
-       Field = Field->getNextIvar()) {
+       Field = Field->getNextIvar(), ++FieldNo) {
     llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit);
 
     llvm::StringRef FieldName = Field->getName();





More information about the cfe-commits mailing list