[compiler-rt] r268114 - Try to fix clang-cmake-aarch64-42vma by removing a memory leak (have a global var capture it).

Filipe Cabecinhas via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 14:33:12 PDT 2016


Author: filcab
Date: Fri Apr 29 16:33:12 2016
New Revision: 268114

URL: http://llvm.org/viewvc/llvm-project?rev=268114&view=rev
Log:
Try to fix clang-cmake-aarch64-42vma by removing a memory leak (have a global var capture it).

Modified:
    compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc

Modified: compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc?rev=268114&r1=268113&r2=268114&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/invalid-pointer-pairs.cc Fri Apr 29 16:33:12 2016
@@ -8,11 +8,12 @@
 #include <assert.h>
 #include <stdlib.h>
 
+char *p;
 int main(int argc, char **argv) {
   // ALL-ERRORS: ERROR: AddressSanitizer: invalid-pointer-pair
   // [[PTR1:0x[0-9a-f]+]] [[PTR2:0x[0-9a-f]+]]
   assert(argc >= 2);
-  char *p = (char *)malloc(42);
+  p = (char *)malloc(42);
   char *q = (char *)malloc(42);
   switch (argv[1][0]) {
   case 'g':




More information about the llvm-commits mailing list