Upstream support for NSConstantArray, NSConstantIntegerNumber, NSConstant{Float,Double}Number and NSConstantDictionary. We would've upstreamed this earlier but testing it requires -fno-constant-nsnumber-literals, -fno-constant-nsarray-literals and -fno-constant-nsdictionary-literals which haven't been upstreamed yet. As a temporary workaround use the system compiler (xcrun clang) for the constant variant of the tests.
I'm just upstreaming this. The patch and the tests were all authored by Fred Riss.
Shouldn't this be done with a DataExtractor? The code is assuming that you can get a valid host float by pasting target bytes into a host float. While most likely everybody is using the same float & double representations these days, that doesn't seem like something we should rely on.