summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
index e131326de09..a8291b6d0d0 100644
--- a/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
+++ b/llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
@@ -459,7 +459,7 @@ bool DevirtModule::tryUniqueRetValOpt(
auto tryUniqueRetValOptFor = [&](bool IsOne) {
const BitSetInfo *UniqueBitSet = 0;
for (const VirtualCallTarget &Target : TargetsForSlot) {
- if (Target.RetVal == IsOne ? 1 : 0) {
+ if (Target.RetVal == (IsOne ? 1 : 0)) {
if (UniqueBitSet)
return false;
UniqueBitSet = Target.BS;
OpenPOWER on IntegriCloud