correct const-ness with auto and dyn_cast
authorSanjay Patel <spatel@rotateright.com>
Wed, 15 Oct 2014 17:45:13 +0000 (17:45 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 15 Oct 2014 17:45:13 +0000 (17:45 +0000)
commitddcfe814598129aba3502e49598553d3eda57689
treed247c15b16baa11655886a89584a68f6bf97301b
parent6c15862fd32a272b9ab1833de2cc8858e9036388
correct const-ness with auto and dyn_cast

1. Use const with autos.
2. Don't bother with explicit const in cast ops because they do it automagically.

Thanks, David B. / Aaron B. / Reid K.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219817 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp