Custom IR type fails to verify

I’ve created a custom type extending from the llvmlite.ir.types.Type class. I implement the necessary functions such as format_constant, __eq__, etc.

The following IR generated from creating a global constant:

@"name" = internal global [9 x i8] c"nicholas\00"

generates the following error when verifying the module:

RuntimeError: LLVM IR parsing error
<string>:5:37: error: expected string
@"name" = internal global [9 x i8] c"nicholas
                                   ^

Any help would be appreciated.
(Note that both LLI and LLC do not produce any errors!)

Solved! The escape code \00 belongs in the IR generated and should not be escaped out in the python string itself! Example: \\00

Is it possible we could get better errors here?