Skip to content

Commit c6b3390

Browse files
committed
Rename operator |= as merge
1 parent f8e501f commit c6b3390

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Target/DirectX/DXILShaderFlags.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ DXILModuleShaderFlagsInfo::DXILModuleShaderFlagsInfo(const Module &M) {
8383
// Insert shader flag mask for function F
8484
FunctionFlags.push_back({&F, CSF});
8585
// Update combined shader flags mask
86-
CombinedSFMask |= CSF;
86+
CombinedSFMask.merge(CSF);
8787
}
8888
llvm::sort(FunctionFlags);
8989
}

llvm/lib/Target/DirectX/DXILShaderFlags.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ struct ComputedShaderFlags {
7070
return ModuleFlags;
7171
}
7272

73-
ComputedShaderFlags &operator|=(const uint64_t IVal) {
73+
void merge(const uint64_t IVal) {
7474
#define SHADER_FEATURE_FLAG(FeatureBit, DxilModuleBit, FlagName, Str) \
7575
FlagName |= (IVal & getMask(DxilModuleBit));
7676
#define DXIL_MODULE_FLAG(DxilModuleBit, FlagName, Str) \
7777
FlagName |= (IVal & getMask(DxilModuleBit));
7878
#include "llvm/BinaryFormat/DXContainerConstants.def"
79-
return *this;
79+
return;
8080
}
8181

8282
void print(raw_ostream &OS = dbgs()) const;

0 commit comments

Comments
 (0)