[llvm-bugs] [Bug 37019] New: Undefined behavior in CFGPrinter due to Twine misuse
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 5 12:45:24 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37019
Bug ID: 37019
Summary: Undefined behavior in CFGPrinter due to Twine misuse
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Global Analyses
Assignee: unassignedbugs at nondot.org
Reporter: siu at continuum.io
CC: llvm-bugs at lists.llvm.org
The Twine usage in include/llvm/Analysis/CFGPrinter.h#L175
(https://github.com/llvm-mirror/llvm/blob/433eb70569ee6379cdd5181e72b9193fdb0a39dd/include/llvm/Analysis/CFGPrinter.h#L175)
is leading to an undefined behavior bug when LLVM is compiled with O2. The
error can be observed with `opt -dot-cfg` on a function that contains
branch-weight. The output DOT file will be corrupted.
Llvmlite has patched LLVM with https://github.com/numba/llvmlite/pull/343. The
PR also contains test to replicate the problem.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180405/18a2019b/attachment.html>
More information about the llvm-bugs
mailing list