]> granicus.if.org Git - clang/commit
remove code to add bound checks for simple array accesses, since those are already...
authorNuno Lopes <nunoplopes@sapo.pt>
Mon, 7 May 2012 17:57:00 +0000 (17:57 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Mon, 7 May 2012 17:57:00 +0000 (17:57 +0000)
commitd7fb96e3bfeeaae7e28666b2838b430ff8c26397
treed780b14fefa5bbf5207a6a2e81ed229f9f888d6b
parent41a669a30074dcc221ba199e5dde484cc33adba1
remove code to add bound checks for simple array accesses, since those are already covered by the check with the objectsize builtin
remove the comparison of objectsize with -1. since it's an unsigned comparison, it will always succeed if objectsize returns -1, which is enough to have the check removed

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156311 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp