diff options
author | David Chisnall <csdavec@swan.ac.uk> | 2010-11-03 16:12:44 +0000 |
---|---|---|
committer | David Chisnall <csdavec@swan.ac.uk> | 2010-11-03 16:12:44 +0000 |
commit | e8431a77662f5f3a65a2d8565ddcd99ae7e12800 (patch) | |
tree | 6a8aeaeeae6aa713969a8f817af92f637699a857 /clang/lib/CodeGen/CGObjCMac.cpp | |
parent | 9d1fe4c40d6534fb7bf2c5098e4e561729f05a61 (diff) | |
download | bcm5719-llvm-e8431a77662f5f3a65a2d8565ddcd99ae7e12800.tar.gz bcm5719-llvm-e8431a77662f5f3a65a2d8565ddcd99ae7e12800.zip |
Some fixes for synthesized ivar metadata (GNU runtime).
llvm-svn: 118172
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 098157474b9..a1b029c3206 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/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); } |