commit | 59324297650c12a8dccf1a7ad650a9e895fdc17e | [log] [tgz] |
---|---|---|
author | Roman Divacky <rdivacky@freebsd.org> | Wed Sep 05 22:26:57 2012 +0000 |
committer | Roman Divacky <rdivacky@freebsd.org> | Wed Sep 05 22:26:57 2012 +0000 |
tree | fb52c6e19359d66d87961588b41f2f98ffb894b3 | |
parent | 77fffa6fdd389ad6d70a42b36c1c36c768c2de41 [diff] [blame] |
Stop casting away const qualifier needlessly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163258 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 10a534f..cbc7352 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -772,7 +772,7 @@ LegalIntReg = IntReg; } else { RegisterTypeForVT[IntReg] = TransformToType[IntReg] = - (MVT::SimpleValueType)LegalIntReg; + (const MVT::SimpleValueType)LegalIntReg; ValueTypeActions.setTypeAction(IVT, TypePromoteInteger); } }