LowerConstantPool passes a nullptr into classifyLocalReference. The medium code model handling for PIC will try to deference it using isa. This patch switches to isa_and_nonnull.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Accepting, couple of options as to some other directions as well if you want to go there.
llvm/lib/Target/X86/X86Subtarget.cpp | ||
---|---|---|
91–93 | Seems reasonable to either comment your commit message here or try to fix the nullptr into classifyLocalReference and assert nonnull? |
llvm/lib/Target/X86/X86Subtarget.cpp | ||
---|---|---|
91–93 | Looks like there are several places that handle constants to that pass null, fastisel, globalisel and regular isel. Also jump tables. This function takes a GlobalValue and constants and jump table don't exist as GlobalValues do they? So I'm not sure how to fix the nullptr input. |
Seems reasonable to either comment your commit message here or try to fix the nullptr into classifyLocalReference and assert nonnull?