[LLVMdev] LTO "bug" and Clang warnings

Krzysztof Parzyszek kparzysz at codeaurora.org
Tue Jan 8 08:34:09 PST 2013


On 1/8/2013 10:20 AM, Duncan Sands wrote:
>
> I don't think this is correct.  At the LLVM IR level it is valid to
> write into bar and baz by accessing off the end of foo.

I'd have to find the actual clauses in the standard, but I'm pretty sure 
that neither C nor C++ allow this.  If the LLVM IR does not prohibit it, 
then it's likely that we lose some information in the translation 
process (unless it's indicated by metadata).

-Krzysztof

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-dev mailing list