forked from OSchip/llvm-project
ObjectiveC Generics: follow-up commit to r281355.
Correct getExtraLocalDataSize for ObjCTypeParamTypeLoc. rdar://24619481 rdar://25060179 llvm-svn: 281404
This commit is contained in:
parent
c397f0b272
commit
d33b4a6292
|
@ -763,7 +763,9 @@ public:
|
|||
|
||||
unsigned getExtraLocalDataSize() const {
|
||||
if (!this->getNumProtocols()) return 0;
|
||||
return this->getNumProtocols() * sizeof(SourceLocation) ;
|
||||
// When there are protocol qualifers, we have LAngleLoc and RAngleLoc
|
||||
// as well.
|
||||
return (this->getNumProtocols() + 2) * sizeof(SourceLocation) ;
|
||||
}
|
||||
unsigned getExtraLocalDataAlignment() const {
|
||||
return llvm::alignOf<SourceLocation>();
|
||||
|
|
Loading…
Reference in New Issue