diff options
Diffstat (limited to 'llvm/tools/llvm-c-test/attributes.c')
-rw-r--r-- | llvm/tools/llvm-c-test/attributes.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/tools/llvm-c-test/attributes.c b/llvm/tools/llvm-c-test/attributes.c index c7bc0d3c87b..c6beab1d31b 100644 --- a/llvm/tools/llvm-c-test/attributes.c +++ b/llvm/tools/llvm-c-test/attributes.c @@ -14,7 +14,6 @@ #include "llvm-c-test.h" -#include <assert.h> #include <stdlib.h> int llvm_test_function_attributes(void) { @@ -31,7 +30,6 @@ int llvm_test_function_attributes(void) { int AttrCount = LLVMGetAttributeCountAtIndex(F, Idx); LLVMAttributeRef *Attrs = (LLVMAttributeRef *)malloc(AttrCount * sizeof(LLVMAttributeRef)); - assert(Attrs); LLVMGetAttributesAtIndex(F, Idx, Attrs); free(Attrs); } @@ -63,7 +61,6 @@ int llvm_test_callsite_attributes(void) { int AttrCount = LLVMGetCallSiteAttributeCount(I, Idx); LLVMAttributeRef *Attrs = (LLVMAttributeRef *)malloc( AttrCount * sizeof(LLVMAttributeRef)); - assert(Attrs); LLVMGetCallSiteAttributes(I, Idx, Attrs); free(Attrs); } |