Mercurial > projects > ldc
view lphobos/llvm/va_list.d @ 1166:c6f39553b702
Clean up some suspicious code.
There's no guarantee a constant of integer type is a ConstantInt, so it's not
safe to just cast<> these to ConstantInt. (It could be a constant expression,
for example)
The code is shorter this way too :).
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 29 Mar 2009 03:27:04 +0200 |
parents | 0ccfae271c45 |
children |
line wrap: on
line source
module llvm.va_list; alias void* va_list; /* version(X86) { alias void* va_list; } else version(X86_64) { struct X86_64_va_list { uint gp_offset; uint fp_offset; void* overflow_arg_area; void* reg_save_area; } alias X86_64_va_list va_list; } else static assert("only x86 and x86-64 support va_list"); */