mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
NULL cannot be portably used as the last argument to a function with __attribute((sentinel)), even though it usually works. Use (void*)0 instead. PR11002.
llvm-svn: 140720
This commit is contained in:
parent
2400aacfb7
commit
3b5162de17
@ -235,19 +235,19 @@ TEST(TypeBuilderTest, Extensions) {
|
||||
TypeBuilder<int, false>::get(getGlobalContext()),
|
||||
TypeBuilder<int*, false>::get(getGlobalContext()),
|
||||
TypeBuilder<void*[], false>::get(getGlobalContext()),
|
||||
NULL)),
|
||||
(void*)0)),
|
||||
(TypeBuilder<MyType*, false>::get(getGlobalContext())));
|
||||
EXPECT_EQ(PointerType::getUnqual(StructType::get(
|
||||
TypeBuilder<types::i<32>, false>::get(getGlobalContext()),
|
||||
TypeBuilder<types::i<32>*, false>::get(getGlobalContext()),
|
||||
TypeBuilder<types::i<8>*[], false>::get(getGlobalContext()),
|
||||
NULL)),
|
||||
(void*)0)),
|
||||
(TypeBuilder<MyPortableType*, false>::get(getGlobalContext())));
|
||||
EXPECT_EQ(PointerType::getUnqual(StructType::get(
|
||||
TypeBuilder<types::i<32>, false>::get(getGlobalContext()),
|
||||
TypeBuilder<types::i<32>*, false>::get(getGlobalContext()),
|
||||
TypeBuilder<types::i<8>*[], false>::get(getGlobalContext()),
|
||||
NULL)),
|
||||
(void*)0)),
|
||||
(TypeBuilder<MyPortableType*, true>::get(getGlobalContext())));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user