[LLVMdev] SwitchInst problem
John Criswell
criswell at illinois.edu
Thu Aug 22 07:50:49 PDT 2013
On 8/22/13 4:01 AM, Tim Northover wrote:
> Hi Rasha,
>
>> What is wrong in the code?
> Your best bet is to run a debugger and see if the variables have
> values you expect just before that last call, and then look at what's
> causing the segfault in LLVM (null pointer?) code and work out where
> the first place it's not doing what you expect is.
You may also want to use cast<> instead of dyn_cast<> if you expect the
result of dyn_cast<> to be non-NULL. cast<> will assert that its result
is non-NULL.
-- John T.
> Cheers.
>
> Tim.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
More information about the llvm-dev
mailing list