[llvm-commits] CVS: llvm/lib/Support/APInt.cpp

Chris Lattner clattner at apple.com
Sat Feb 24 17:59:16 PST 2007


> / Clean up the memory we allocated.
> -  delete [] U;
> -  delete [] V;
> -  delete [] Q;
> -  delete [] R;
> +  if (U != &SPACE[0]) {
> +    delete [] U;
> +    delete [] V;
> +    delete [] Q;
> +    delete [] R;
> +  }
>  }

Please just use SmallVector<uint32, N> instead of explicitly doing it  
yourself.

-Chris




More information about the llvm-commits mailing list