CodeGen: fix a case of incorrect checks for ivars
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 25 Oct 2017 03:58:15 +0000 (03:58 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 25 Oct 2017 03:58:15 +0000 (03:58 +0000)
commitad75c7d19463f28461cd1c877eddf36147c25454
tree6a509222a6ace2f940f8d32ae0695cb22ccf98d1
parentf99c84d548f142ea9df054b889d33311f8a4497f
CodeGen: fix a case of incorrect checks for ivars

Ensure that we check the ivar containing decl for the DLL storage
attribute rather than the ivar itself as the dll storage is associated
to the interface decl not the ivar decl.

llvm-svn: 316545
clang/lib/CodeGen/CGObjCMac.cpp
clang/test/CodeGenObjC/dllstorage.m