Issue 152238
Summary SystemZFrameLowering modifies underlying IR module
Labels backend:SystemZ
Assignees
Reporter arsenm
    [This](https://github.com/llvm/llvm-project/blob/ee6afeb72ef2cee918c1338c926c481ad36aa915/llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp#L577) may illegally modify the IR if `mcount` isn't already declared in the module.

It shouldn't be necessary to have an IR declaration, at this point only the symbol name should be be necessary to emit the call 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to