Fix warning when compiling with optimizations:

warning: ‘OPT’ may be used uninitialized in this function

Now OPT is initialized to NULL. I'm not certain if this is the correct fix;
others please review.

llvm-svn: 75321
This commit is contained in:
Ted Kremenek 2009-07-11 00:21:48 +00:00
parent 106f2885d1
commit f514592197
1 changed files with 2 additions and 2 deletions

View File

@ -3832,8 +3832,8 @@ inline QualType Sema::CheckAdditionOperands( // C99 6.5.6
if (IExp->getType()->isIntegerType()) {
QualType PointeeTy;
const PointerType *PTy;
const ObjCObjectPointerType *OPT;
const PointerType *PTy = NULL;
const ObjCObjectPointerType *OPT = NULL;
if ((PTy = PExp->getType()->getAsPointerType()))
PointeeTy = PTy->getPointeeType();