Skip to content

Commit e5a688c

Browse files
committed
Work around MSVC compilation error
1 parent 2f3320e commit e5a688c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/LTO/ThinLTOCodeGenerator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1782,9 +1782,10 @@ void ThinLTOCodeGenerator::run() {
17821782
};
17831783
struct ModuleInfo {
17841784
std::unique_ptr<AsyncModuleCacheEntry> Entry;
1785-
std::atomic<unsigned> State = MS_Empty;
1785+
std::atomic<unsigned> State;
17861786
std::unique_ptr<MemoryBuffer> ComputedBuffer;
17871787
std::unique_ptr<MemoryBuffer> CachedBuffer;
1788+
ModuleInfo() : State(MS_Empty) {}
17881789
};
17891790
std::vector<ModuleInfo> Infos(ModuleCount);
17901791

0 commit comments

Comments
 (0)