[llvm-commits] [llvm] r74670 - in /llvm/trunk: include/llvm/LLVMContext.h lib/VMCore/LLVMContext.cpp
Daniel Dunbar
daniel at zuster.org
Fri Jul 17 09:12:41 PDT 2009
Hi Owen,
On Wed, Jul 1, 2009 at 4:56 PM, Owen Anderson<resistor at mac.com> wrote:
> +// Constant accessors
> +Constant* LLVMContext::getNullValue(const Type* Ty) {
> + return Constant::getNullValue(Ty);
> +}
Until these routines actually start using the context, can you add
--
assert(this && "Invalid context!");
--
to each of these methods? This will make it easier to detect problems
with null context pointers.
- Daniel
More information about the llvm-commits
mailing list