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)
commitc00017d1f644b7afd2a033f6a942ba77aac8b84d
tree99cfcb28d4591725bc36ebac0b7e5439d0b951ae
parent3b7fc86677aa17fa00ada1db6e33e6e81948b3dc
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.

llvm-svn: 219817
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp