Skip to content

Commit cba1dfe

Browse files
Address a comment.
1 parent 651f7ab commit cba1dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CodeGen/ConstantInitBuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void ConstantInitFuture::installInGlobal(llvm::GlobalVariable *GV) {
4040
if (auto *C = dyn_cast<llvm::Constant *>(Data)) {
4141
GV->setInitializer(C);
4242
} else {
43-
auto &builder = *Data.get<ConstantInitBuilderBase*>();
43+
auto &builder = *cast<ConstantInitBuilderBase *>(Data);
4444
assert(builder.Buffer.size() == 1);
4545
builder.setGlobalInitializer(GV, builder.Buffer[0]);
4646
builder.Buffer.clear();

0 commit comments

Comments
 (0)