aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGenPrepare.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index f696255..dd431cc 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -2603,7 +2603,7 @@ struct ExtAddrMode : public TargetLowering::AddrMode {
if (Scale && other.Scale && Scale != other.Scale)
Result |= ScaleField;
- if (countPopulation(Result) > 1)
+ if (llvm::popcount(Result) > 1)
return MultipleFields;
else
return static_cast<FieldName>(Result);