diff options
author | Steve Naroff <snaroff@apple.com> | 2008-09-24 22:46:45 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2008-09-24 22:46:45 +0000 |
commit | 4efed31acf04292b0d6124864f23b639c33e659c (patch) | |
tree | 0b151893eaa78275a9412491a968db3b0be2f3ae | |
parent | c60873ce44253fdee24f3f6982701837b1ef2bf5 (diff) | |
download | llvm-4efed31acf04292b0d6124864f23b639c33e659c.zip llvm-4efed31acf04292b0d6124864f23b639c33e659c.tar.gz llvm-4efed31acf04292b0d6124864f23b639c33e659c.tar.bz2 |
Fix a couple harmless warnings when compiling optimized with gcc (reported by mrs@apple.com).
llvm-svn: 56591
-rw-r--r-- | clang/Driver/RewriteBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/Driver/RewriteBlocks.cpp b/clang/Driver/RewriteBlocks.cpp index 691f104..76d0ebd 100644 --- a/clang/Driver/RewriteBlocks.cpp +++ b/clang/Driver/RewriteBlocks.cpp @@ -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(); |