[Lldb-commits] [PATCH] D40812: Remove no-op null checks, NFC

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Dec 4 16:23:23 PST 2017


jasonmolenda added a comment.

all:
	echo 'int foo() { return 5; }' > mylib.c
	echo "int foo() __attribute__((weak_import)); int printf(const char *, ...); int main() { if (foo) printf (\"have foo() %d\\\n\", foo()); else printf(\"do not have foo\\\n\"); return 0; }" > main.c
	clang -dynamiclib -o libmylib.dylib mylib.c
	clang main.c -L. -lmylib
	./a.out
	echo 'int bar() { return 5; }' > mylib.c
	clang -dynamiclib -o libmylib.dylib mylib.c
	./a.out


https://reviews.llvm.org/D40812





More information about the lldb-commits mailing list