We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 651f7ab commit cba1dfeCopy full SHA for cba1dfe
clang/lib/CodeGen/ConstantInitBuilder.cpp
@@ -40,7 +40,7 @@ void ConstantInitFuture::installInGlobal(llvm::GlobalVariable *GV) {
40
if (auto *C = dyn_cast<llvm::Constant *>(Data)) {
41
GV->setInitializer(C);
42
} else {
43
- auto &builder = *Data.get<ConstantInitBuilderBase*>();
+ auto &builder = *cast<ConstantInitBuilderBase *>(Data);
44
assert(builder.Buffer.size() == 1);
45
builder.setGlobalInitializer(GV, builder.Buffer[0]);
46
builder.Buffer.clear();
0 commit comments