forked from OSchip/llvm-project
parent
fb38f274ff
commit
c92bc4ce2f
|
@ -965,8 +965,9 @@ Sema::DeclTy *Sema::ParseEnumConstant(Scope *S, DeclTy *theEnumDecl,
|
|||
Id->getName());
|
||||
// FIXME: Don't leak memory: delete Val;
|
||||
Val = 0; // Just forget about it.
|
||||
} else {
|
||||
EltTy = Val->getType();
|
||||
}
|
||||
EltTy = Val->getType();
|
||||
}
|
||||
|
||||
if (!Val) {
|
||||
|
|
Loading…
Reference in New Issue