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

Rafael Espindola rafael.espindola at gmail.com
Wed Mar 27 08:37:54 PDT 2013


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.

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





More information about the cfe-commits mailing list