diff options
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp b/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp index 9988f48712b..16c33b71ed2 100644 --- a/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp +++ b/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp @@ -569,7 +569,7 @@ bool AArch64PromoteConstant::runOnFunction(Function &F) { // global. Do not promote constant expressions either, as they may // require some code expansion. if (Cst && !isa<GlobalValue>(Cst) && !isa<ConstantExpr>(Cst) && - AlreadyChecked.insert(Cst)) + AlreadyChecked.insert(Cst).second) LocalChange |= promoteConstant(Cst); } } |

