llvm.org GIT mirror llvm / 61123cf
AArch64: Silence -Wabsolute-value warning with std::abs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216794 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 6 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
79387938 }
79397939 case ISD::Constant:
79407940 case ISD::TargetConstant: {
7941 if(abs(cast(V.getNode())->getSExtValue()) < 1<<(width-1))
7941 if (std::abs(cast(V.getNode())->getSExtValue()) <
7942 1 << (width - 1))
79427943 return true;
79437944 return false;
79447945 }