[LLVMdev] Problem with 'const' in lib/Transforms/Utils/PromoteMemoryToRegister.cpp

Morten Ofstad morten at hue.no
Mon Oct 18 02:04:36 PDT 2004


at line 216 'S' is declared with 'const' qualifier

const DominanceFrontier::DomSetType &S = it->second;

a few lines later an iterator over this set is asked for, instead of a 
const_iterator -- Visual C (rightfully) flags this as an error. Here is 
a patch...

m.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20041018/96d23140/attachment.txt>


More information about the llvm-dev mailing list