]> granicus.if.org Git - clang/commitdiff
Add const in preparation for a simplify_type change in llvm.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Mar 2013 15:37:54 +0000 (15:37 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 27 Mar 2013 15:37:54 +0000 (15:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178146 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFG.cpp

index 4d20467a79da6c411944882f5de17d0fe50db448..f20f84c5c0fdf096903d2a57ca9f19fbb55aac1c 100644 (file)
@@ -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<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