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 55f33fb commit fed455cCopy full SHA for fed455c
clang/lib/CIR/CodeGen/CIRGenModule.cpp
@@ -3346,9 +3346,8 @@ void CIRGenModule::emitModuleLinkOptions() {
3346
3347
// Add the linker options metadata flag.
3348
llvm::SmallVector<mlir::Attribute, 16> args;
3349
- for (const auto &opt : linkerOptionsMetadata) {
+ for (const auto &opt : linkerOptionsMetadata)
3350
args.push_back(opt);
3351
- }
3352
mlir::ArrayAttr arr = builder.getArrayAttr(args);
3353
getBuilder().create<cir::LinkerOptionsOp>(theModule->getLoc(), arr);
3354
}
clang/test/CIR/Lowering/linker-options.cir
@@ -1,7 +1,7 @@
1
// RUN: cir-opt -cir-to-llvm %s | FileCheck %s
2
3
module {
4
- cir.linker_options ["/DEFAULTLIB:", "libcmt"]
+ cir.linker_options ["/DEFAULTLIB:", "libcmt"]
5
6
7
// CHECK: module {
0 commit comments