forked from OSchip/llvm-project
parent
77c50d2394
commit
fdbb4a54d5
|
@ -101,14 +101,13 @@ Preprocessor::AllocateVisibilityMacroDirective(SourceLocation Loc,
|
|||
/// \brief Release the specified MacroInfo to be reused for allocating
|
||||
/// new MacroInfo objects.
|
||||
void Preprocessor::ReleaseMacroInfo(MacroInfo *MI) {
|
||||
MacroInfoChain *MIChain = (MacroInfoChain*) MI;
|
||||
MacroInfoChain *MIChain = (MacroInfoChain *)MI;
|
||||
if (MacroInfoChain *Prev = MIChain->Prev) {
|
||||
MacroInfoChain *Next = MIChain->Next;
|
||||
Prev->Next = Next;
|
||||
if (Next)
|
||||
Next->Prev = Prev;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
assert(MIChainHead == MIChain);
|
||||
MIChainHead = MIChain->Next;
|
||||
MIChainHead->Prev = nullptr;
|
||||
|
|
Loading…
Reference in New Issue