summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-11-03 16:12:44 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-11-03 16:12:44 +0000
commite0d987626cc11317b36d6d3cc148c9a9d4b35850 (patch)
treeb73bf49744e4a4a3afe39da169c5f87e685a8394 /lib/CodeGen/CGObjCMac.cpp
parent3387c65a094a02b2a94c05111d035a97d3d5c794 (diff)
downloadclang-e0d987626cc11317b36d6d3cc148c9a9d4b35850.tar.gz
Some fixes for synthesized ivar metadata (GNU runtime).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--lib/CodeGen/CGObjCMac.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp
index 098157474b..a1b029c320 100644
--- a/lib/CodeGen/CGObjCMac.cpp
+++ b/lib/CodeGen/CGObjCMac.cpp
@@ -77,6 +77,7 @@ static uint64_t LookupFieldBitOffset(CodeGen::CodeGenModule &CGM,
++Index;
}
assert(Index != Ivars.size() && "Ivar is not inside container!");
+ assert(Index < RL->getFieldCount() && "Ivar is not inside record layout!");
return RL->getFieldOffset(Index);
}