From: Rafael Espindola Date: Wed, 27 Mar 2013 15:37:54 +0000 (+0000) Subject: Add const in preparation for a simplify_type change in llvm. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8343f8e00a222ca09dde536c77313e3e6e03ad59;p=clang Add const in preparation for a simplify_type change in llvm. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178146 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFG.cpp b/lib/Analysis/CFG.cpp index 4d20467a79..f20f84c5c0 100644 --- a/lib/Analysis/CFG.cpp +++ b/lib/Analysis/CFG.cpp @@ -675,7 +675,7 @@ CFG* CFGBuilder::buildCFG(const Decl *D, Stmt *Statement) { E = BackpatchBlocks.end(); I != E; ++I ) { CFGBlock *B = I->block; - GotoStmt *G = cast(B->getTerminator()); + const GotoStmt *G = cast(B->getTerminator()); LabelMapTy::iterator LI = LabelMap.find(G->getLabel()); // If there is no target for the goto, then we are looking at an