Fix a funny bug I introduced during conversion of ARM constant islands to Mips.
authorReed Kotler <rkotler@mips.com>
Sun, 24 Nov 2013 02:53:09 +0000 (02:53 +0000)
committerReed Kotler <rkotler@mips.com>
Sun, 24 Nov 2013 02:53:09 +0000 (02:53 +0000)
commitab3cb5cf1bc3f6729503f66f81b87002c7697c02
tree8dcb8f2419e043ece1a7290ce3c22d98b615a827
parent2b5c552550222274650bf3b391745e462f09ca8a
Fix a funny bug I introduced during conversion of ARM constant islands to Mips.
I had to move some code and I moved a declaration forward past it's first use
in the function but by nutty coincidence there was another variable of the same
name and type and  with completely unrelated function that was declared globally
in the class so no compilation error ensued.
It required some unusual conditions for it to even matter. Caused test
case casts.c in test-suite to fail during compilation with a duplicate
symbol error. I would have noticed it during final code review for this port.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsConstantIslandPass.cpp
test/CodeGen/Mips/ci2.ll [new file with mode: 0644]