llvm.org GIT mirror llvm / f56dc28
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140720 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Friedman 9 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
234234 TypeBuilder::get(getGlobalContext()),
235235 TypeBuilder::get(getGlobalContext()),
236236 TypeBuilder::get(getGlobalContext()),
237 NULL)),
237 (void*)0)),
238238 (TypeBuilder::get(getGlobalContext())));
239239 EXPECT_EQ(PointerType::getUnqual(StructType::get(
240240 TypeBuilder, false>::get(getGlobalContext()),
241241 TypeBuilder*, false>::get(getGlobalContext()),
242242 TypeBuilder*[], false>::get(getGlobalContext()),
243 NULL)),
243 (void*)0)),
244244 (TypeBuilder::get(getGlobalContext())));
245245 EXPECT_EQ(PointerType::getUnqual(StructType::get(
246246 TypeBuilder, false>::get(getGlobalContext()),
247247 TypeBuilder*, false>::get(getGlobalContext()),
248248 TypeBuilder*[], false>::get(getGlobalContext()),
249 NULL)),
249 (void*)0)),
250250 (TypeBuilder::get(getGlobalContext())));
251251 }
252252