]> granicus.if.org Git - clang/commitdiff
Fix a couple harmless warnings when compiling optimized with gcc (reported by mrs...
authorSteve Naroff <snaroff@apple.com>
Wed, 24 Sep 2008 22:46:45 +0000 (22:46 +0000)
committerSteve Naroff <snaroff@apple.com>
Wed, 24 Sep 2008 22:46:45 +0000 (22:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56591 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/RewriteBlocks.cpp

index 691f104a64d23eb8b3b8348acfba4bfdfdf2b045..76d0ebd42cfd32dbf173e214369c7cfe2af6cefe 100644 (file)
@@ -679,8 +679,8 @@ Stmt *RewriteBlocks::RewriteFunctionBody(Stmt *S) {
 
 std::string RewriteBlocks::SynthesizeBlockCall(CallExpr *Exp) {
   // Navigate to relevant type information.
-  const char *closureName;
-  const BlockPointerType *CPT;
+  const char *closureName = 0;
+  const BlockPointerType *CPT = 0;
   
   if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Exp->getCallee())) {
     closureName = DRE->getDecl()->getName();