aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
diff options
context:
space:
mode:
authorKristina Brooks <kristina@nym.hush.com>2018-10-08 17:29:39 +0000
committerKristina Brooks <kristina@nym.hush.com>2018-10-08 17:29:39 +0000
commit4f197cd736ee1cf1ef84dae2ad0a5243adc4b27a (patch)
treeddf6e0b6a959648a48e2c104900e3688d31f8168 /llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
parent9b5a495d4850f6e6426ab5df10a44a7d2c05bd19 (diff)
downloadllvm-4f197cd736ee1cf1ef84dae2ad0a5243adc4b27a.zip
llvm-4f197cd736ee1cf1ef84dae2ad0a5243adc4b27a.tar.gz
llvm-4f197cd736ee1cf1ef84dae2ad0a5243adc4b27a.tar.bz2
Fix incorrect Twine usage in CFGPrinter
CFGPrinter (-view-cfg, -dot-cfg) invokes an undefined behaviour (dangling pointer to rvalue) on IR files with branch weights. This patch fixes the problem caused by Twine initialization and string conversion split into two statements. This change fixes the bug 37019. A similar patch to this problem was provided in the llvmlite project Patch by mcopik (Marcin Copik). Differential Revision: https://reviews.llvm.org/D52933 llvm-svn: 343984
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp')
0 files changed, 0 insertions, 0 deletions