[PATCH] Restore the ability to check if LLVMCreateObjectFile was successful

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Tue Sep 2 12:26:47 PDT 2014

Comment at: test/Bindings/llvm-c/objectfile.ll:1
@@ +1,2 @@
+; RUN: (llvm-c-test --object-list-sections < /dev/null 2>&1 || true) | grep 'Error reading object'
+; This used to cause a segfault
We have a not utility that you can use instead of || true.

With no arguments "not foo" is true if "foo" is false, but not if foo crashes.


More information about the llvm-commits mailing list