[RS4GC] Remove an overly strong assertion
authorPhilip Reames <listmail@philipreames.com>
Sat, 19 Dec 2015 02:38:22 +0000 (02:38 +0000)
committerPhilip Reames <listmail@philipreames.com>
Sat, 19 Dec 2015 02:38:22 +0000 (02:38 +0000)
commit4188784a044d5328619dc7e690d5005372c65e9a
treebbb4a7c760bd163a7f14ea34bab8f1c3f0d344b4
parentbae90264170cd5d18f89ed5c2bca8ff1e0eb41a6
[RS4GC] Remove an overly strong assertion

As shown by the included test case, it's reasonable to end up with constant references during base pointer calculation.  The code actually handled this case just fine, we only had the assert to help isolate problems under the belief that constant references shouldn't be present in IR generated by managed frontends. This turned out to be wrong on two fronts: 1) Manual Jacobs is working on a language with constant references, and b) we found a case where the optimizer does create them in practice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256079 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
test/Transforms/RewriteStatepointsForGC/constants.ll