r178146 - Add const in preparation for a simplify_type change in llvm.

David Blaikie dblaikie at gmail.com
Wed Mar 27 11:27:06 PDT 2013


On Wed, Mar 27, 2013 at 8:37 AM, Rafael Espindola
<rafael.espindola at gmail.com> wrote:
> Author: rafael
> Date: Wed Mar 27 10:37:54 2013
> New Revision: 178146
>
> URL: http://llvm.org/viewvc/llvm-project?rev=178146&view=rev
> Log:
> Add const in preparation for a simplify_type change in llvm.

Thanks Rafael! I'm glad to see llvm::cast & friends not dropping const
quite so easily.

>
> Modified:
>     cfe/trunk/lib/Analysis/CFG.cpp
>
> Modified: cfe/trunk/lib/Analysis/CFG.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/CFG.cpp?rev=178146&r1=178145&r2=178146&view=diff
> ==============================================================================
> --- cfe/trunk/lib/Analysis/CFG.cpp (original)
> +++ cfe/trunk/lib/Analysis/CFG.cpp Wed Mar 27 10:37:54 2013
> @@ -675,7 +675,7 @@ CFG* CFGBuilder::buildCFG(const Decl *D,
>                                     E = BackpatchBlocks.end(); I != E; ++I ) {
>
>      CFGBlock *B = I->block;
> -    GotoStmt *G = cast<GotoStmt>(B->getTerminator());
> +    const GotoStmt *G = cast<GotoStmt>(B->getTerminator());
>      LabelMapTy::iterator LI = LabelMap.find(G->getLabel());
>
>      // If there is no target for the goto, then we are looking at an
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits



More information about the cfe-commits mailing list