Author: Manuel Jacob Branch: llvm-translation-backend Changeset: r68776:48ff5edc93a6 Date: 2014-01-20 10:09 +0100 http://bitbucket.org/pypy/pypy/changeset/48ff5edc93a6/
Log: Add const qualifiers here. diff --git a/rpython/translator/llvm/PyPyGC.cpp b/rpython/translator/llvm/PyPyGC.cpp --- a/rpython/translator/llvm/PyPyGC.cpp +++ b/rpython/translator/llvm/PyPyGC.cpp @@ -41,10 +41,10 @@ unsigned PtrSize = AP.TM.getDataLayout()->getPointerSize(); SmallPtrSet<const Function*, 8> GCStackBottoms; - GlobalVariable *GV = getModule().getGlobalVariable("gc_stack_bottoms"); - ConstantArray *Inits = dyn_cast<ConstantArray>(GV->getInitializer()); + const GlobalVariable *GV = getModule().getGlobalVariable("gc_stack_bottoms"); + const ConstantArray *Inits = dyn_cast<ConstantArray>(GV->getInitializer()); for (unsigned i = 0, e = Inits->getNumOperands(); i != e; ++i) - if (Function *F = + if (const Function *F = dyn_cast<Function>(Inits->getOperand(i)->stripPointerCasts())) GCStackBottoms.insert(F); _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit