summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@linux.vnet.ibm.com>2014-03-06 11:22:58 +0000
committerRichard Sandiford <rsandifo@linux.vnet.ibm.com>2014-03-06 11:22:58 +0000
commit0c3682a40232301dac1b5dac0b84b068df670be9 (patch)
tree68f50b30beae63020cfff271b5a585e518099146 /lib/Target/SystemZ/SystemZConstantPoolValue.cpp
parentb653ed85457de149bb42c22a8098e6b2f2685dd4 (diff)
downloadllvm-0c3682a40232301dac1b5dac0b84b068df670be9.tar.gz
[SystemZ] Use "auto" for cast results
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203106 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZConstantPoolValue.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZConstantPoolValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SystemZ/SystemZConstantPoolValue.cpp b/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
index 6c7081169a96..19cec219e2d1 100644
--- a/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
+++ b/lib/Target/SystemZ/SystemZConstantPoolValue.cpp
@@ -43,7 +43,7 @@ getExistingMachineCPValue(MachineConstantPool *CP, unsigned Alignment) {
for (unsigned I = 0, E = Constants.size(); I != E; ++I) {
if (Constants[I].isMachineConstantPoolEntry() &&
(Constants[I].getAlignment() & AlignMask) == 0) {
- SystemZConstantPoolValue *ZCPV =
+ auto *ZCPV =
static_cast<SystemZConstantPoolValue *>(Constants[I].Val.MachineCPVal);
if (ZCPV->GV == GV && ZCPV->Modifier == Modifier)
return I;