summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2016-07-25 17:08:24 +0000
committerJordan Rose <jordan_rose@apple.com>2016-07-25 17:08:24 +0000
commit0cdbe7a57235dd76f8fcb8a8d990a078b025ca27 (patch)
tree16d4560af44027bfac78024c9f4dd2c3b0d5847e /llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
parentdf4b4a8fabd8d810d010e40e6ac3bedc824e01a4 (diff)
downloadbcm5719-llvm-0cdbe7a57235dd76f8fcb8a8d990a078b025ca27.tar.gz
bcm5719-llvm-0cdbe7a57235dd76f8fcb8a8d990a078b025ca27.zip
StringSwitch cannot be copied or moved.
...but most importantly, it cannot be used well with 'auto', because the inferred type is StringSwitch rather than the result type. This is a problem because StringSwitch stores addresses of temporary values rather than copying or moving the value into its own storage. Changing this uncovered the bug in PassBuilder, also in this patch. Clang doesn't seem to have any occurrences of the issue. llvm-svn: 276652
Diffstat (limited to 'llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud