Fixing a -Wcast-qual warning in GCC. No functional changes.

llvm-svn: 214399
This commit is contained in:
Aaron Ballman 2014-07-31 12:55:49 +00:00
parent 5997feb7dc
commit 53201af4d5
1 changed files with 2 additions and 2 deletions

View File

@ -3866,8 +3866,8 @@ static SDValue PerformADDCombineWithOperands(SDNode *N, SDValue N0, SDValue N1,
}
else if (N0.getOpcode() == ISD::FMUL) {
if (VT == MVT::f32 || VT == MVT::f64) {
NVPTXTargetLowering *TLI =
(NVPTXTargetLowering *)&DAG.getTargetLoweringInfo();
const auto *TLI = static_cast<const NVPTXTargetLowering *>(
&DAG.getTargetLoweringInfo());
if (!TLI->allowFMA(DAG.getMachineFunction(), OptLevel))
return SDValue();