[cfe-commits] r41564 - /cfe/trunk/Sema/SemaDecl.cpp
Chris Lattner
sabre at nondot.org
Wed Aug 29 09:03:41 PDT 2007
Author: lattner
Date: Wed Aug 29 11:03:41 2007
New Revision: 41564
URL: http://llvm.org/viewvc/llvm-project?rev=41564&view=rev
Log:
Fix a null dereference Neil ran into
Modified:
cfe/trunk/Sema/SemaDecl.cpp
Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=41564&r1=41563&r2=41564&view=diff
==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Wed Aug 29 11:03:41 2007
@@ -965,8 +965,9 @@
Id->getName());
// FIXME: Don't leak memory: delete Val;
Val = 0; // Just forget about it.
+ } else {
+ EltTy = Val->getType();
}
- EltTy = Val->getType();
}
if (!Val) {
More information about the cfe-commits
mailing list