summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LowerSwitch.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-08-21 03:11:53 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-08-21 03:11:53 +0000
commita9f521fd20b06bad2c044800b8e8ad033af24372 (patch)
tree24ea0578f208a7400dc53526f0411974a4dbff0b /llvm/lib/Transforms/Utils/LowerSwitch.cpp
parent3deb1ad40ca62a6d530650bfe9b00cf78749dae8 (diff)
downloadbcm5719-llvm-a9f521fd20b06bad2c044800b8e8ad033af24372.tar.gz
bcm5719-llvm-a9f521fd20b06bad2c044800b8e8ad033af24372.zip
Avoid binding a reference to a dereferenced pointer in diagnostic serialization
if a diagnostic is emitted outside of any source file. The fix mirrors the corresponding code in TextDiagnosticPrinter. This required moving the functional parts of SDiagRenderer into SDiagWriter so they can be reused in the non-rendering codepath. No functionality change. llvm-svn: 162253
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerSwitch.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud