-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect line number reported for index out of range error #922
Comments
Looking in to this. So far it seems to happen on x86/64 but not 32-bit. Disabling LLVM's CFG simplification pass also makes the problem go away (at the cost of some performance). Not sure if that is an LLVM issue or has to do with how I'm using it. |
I think it's Christmas early this year. This will help a lot. |
@vtjnash The BoundsError improvement seems to have broken this. |
it seems this can be a pretty tough optimization to avoid, since llvm seems to detect the common sub-sequence and remove it (I don't know what pass is doing this, however):
|
this behavior in llvm can be "corrected" at it's source by turning off this optimization in the FPM http://llvm.org/docs/doxygen/html/CodeGen_2Passes_8h_source.html#l00160 (or with a command line flag: |
…ks around this issue (cherry picked from commit af81d6c)
If you run:
the result is
Note the line number is incorrect. As in #900, this isn't helpful when trying to debug :)
The text was updated successfully, but these errors were encountered: