]> granicus.if.org Git - clang/commit
Move the code that sets the AddressSafety
authorAlexander Potapenko <glider@google.com>
Thu, 2 Feb 2012 11:49:28 +0000 (11:49 +0000)
committerAlexander Potapenko <glider@google.com>
Thu, 2 Feb 2012 11:49:28 +0000 (11:49 +0000)
commit89651eaf4170168cac2f34f2738e3d58fc38bbf1
tree03875153b79e9c02c058d9eb8d10b2f913ed6997
parent3a5aca8112e03814f78906dc5d032287adb272b5
Move the code that sets the AddressSafety
attribute into CodeGenModule::SetLLVMFunctionAttributesForDefinition().

Previously it resided in CodeGenModule::GetOrCreateLLVMFunction, which
for some reason wasn't called for ObjC class methods, see
http://code.google.com/p/address-sanitizer/issues/detail?id=33

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149605 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenObjCXX/address-safety-attr.mm [new file with mode: 0644]