forked from OSchip/llvm-project
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:
parent
106f2885d1
commit
f514592197
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue