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)
llvm-svn: 178146

clang/lib/Analysis/CFG.cpp

index 4d20467..f20f84c 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