summaryrefslogtreecommitdiffstats
path: root/clang/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
commite8431a77662f5f3a65a2d8565ddcd99ae7e12800 (patch)
tree6a8aeaeeae6aa713969a8f817af92f637699a857 /clang/lib/CodeGen/CGObjCMac.cpp
parent9d1fe4c40d6534fb7bf2c5098e4e561729f05a61 (diff)
downloadbcm5719-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.cpp1
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);
}
OpenPOWER on IntegriCloud