Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@Dav1dde
Created May 31, 2013 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dav1dde/5687653 to your computer and use it in GitHub Desktop.
Save Dav1dde/5687653 to your computer and use it in GitHub Desktop.
auto newTypeArray = cast(ArrayType)newType;
auto oldTypeArray = cast(ArrayType)oldType;
if (result.isPointer && (newTypeArray !is null && oldTypeArray !is null)) {
auto llvmPrim = cast(PrimitiveType)newTypeArray.base;
if (llvmPrim !is null && llvmPrim.bits <= 8)
return handleCastArray(state, loc, newType, result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment