Summary: The NVPTX backend cannot handle cyclical dependencies on global variable initializers. That is, a global variable cannot be used to initialize or reference another global variable inside of it. This situation was encountered with the new errno tests. This patch simply replaces the offending function with a constant version to break the dependency and alllow the tests to run again.
LLVM libc ========= This directory and its subdirectories contain source code for llvm-libc, a retargetable implementation of the C standard library. LLVM is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.