forked from OSchip/llvm-project
[TrailingObjects] Fix bug in "Convert classes in ExprObjC.h"
(Detected by asan) llvm-svn: 256665
This commit is contained in:
parent
822b4f20e0
commit
db8cdd35b6
|
@ -59,7 +59,8 @@ ObjCDictionaryLiteral::ObjCDictionaryLiteral(ArrayRef<ObjCDictionaryElement> VK,
|
|||
NumElements(VK.size()), HasPackExpansions(HasPackExpansions), Range(SR),
|
||||
DictWithObjectsMethod(method) {
|
||||
KeyValuePair *KeyValues = getTrailingObjects<KeyValuePair>();
|
||||
ExpansionData *Expansions = getTrailingObjects<ExpansionData>();
|
||||
ExpansionData *Expansions =
|
||||
HasPackExpansions ? getTrailingObjects<ExpansionData>() : nullptr;
|
||||
for (unsigned I = 0; I < NumElements; I++) {
|
||||
if (VK[I].Key->isTypeDependent() || VK[I].Key->isValueDependent() ||
|
||||
VK[I].Value->isTypeDependent() || VK[I].Value->isValueDependent())
|
||||
|
|
Loading…
Reference in New Issue