[cfe-commits] r56591 - /cfe/trunk/Driver/RewriteBlocks.cpp
Steve Naroff
snaroff at apple.com
Wed Sep 24 15:46:45 PDT 2008
Author: snaroff
Date: Wed Sep 24 17:46:45 2008
New Revision: 56591
URL: http://llvm.org/viewvc/llvm-project?rev=56591&view=rev
Log:
Fix a couple harmless warnings when compiling optimized with gcc (reported by mrs at apple.com).
Modified:
cfe/trunk/Driver/RewriteBlocks.cpp
Modified: cfe/trunk/Driver/RewriteBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteBlocks.cpp?rev=56591&r1=56590&r2=56591&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteBlocks.cpp (original)
+++ cfe/trunk/Driver/RewriteBlocks.cpp Wed Sep 24 17:46:45 2008
@@ -679,8 +679,8 @@
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();
More information about the cfe-commits
mailing list