diff options
author | Andy Kaylor <akaylor@nvidia.com> | 2025-06-24 10:44:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 10:44:15 -0700 |
commit | 90828e00a09c4e6687d93d1bd6cb24f29e9a8bb5 (patch) | |
tree | bac3a17570b19e1431b5da5f6c9b78f44d47908c /clang/lib | |
parent | 8f7f48a97ea53161e046eeb52a8020f228d79a00 (diff) | |
download | llvm-90828e00a09c4e6687d93d1bd6cb24f29e9a8bb5.zip llvm-90828e00a09c4e6687d93d1bd6cb24f29e9a8bb5.tar.gz llvm-90828e00a09c4e6687d93d1bd6cb24f29e9a8bb5.tar.bz2 |
[CIR] Restore the underscore in dso_local (#145551)
The CIR handling of `dso_local` for globals was upstreamed without the
underscore, making it inconsistent with the incubator and LLVM IR. This
change restores the underscore.
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp index 5d95c6e..a870e6c 100644 --- a/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp +++ b/clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp @@ -1032,7 +1032,7 @@ mlir::LogicalResult CIRToLLVMFuncOpLowering::matchAndRewrite( mlir::ConversionPatternRewriter &rewriter) const { cir::FuncType fnType = op.getFunctionType(); - assert(!cir::MissingFeatures::opFuncDsolocal()); + assert(!cir::MissingFeatures::opFuncDsoLocal()); bool isDsoLocal = false; mlir::TypeConverter::SignatureConversion signatureConversion( fnType.getNumInputs()); @@ -1119,7 +1119,7 @@ void CIRToLLVMGlobalOpLowering::setupRegionInitializedLLVMGlobalOp( const bool isConst = false; assert(!cir::MissingFeatures::addressSpace()); const unsigned addrSpace = 0; - const bool isDsoLocal = op.getDsolocal(); + const bool isDsoLocal = op.getDsoLocal(); assert(!cir::MissingFeatures::opGlobalThreadLocal()); const bool isThreadLocal = false; const uint64_t alignment = op.getAlignment().value_or(0); @@ -1173,7 +1173,7 @@ mlir::LogicalResult CIRToLLVMGlobalOpLowering::matchAndRewrite( const bool isConst = false; assert(!cir::MissingFeatures::addressSpace()); const unsigned addrSpace = 0; - const bool isDsoLocal = op.getDsolocal(); + const bool isDsoLocal = op.getDsoLocal(); assert(!cir::MissingFeatures::opGlobalThreadLocal()); const bool isThreadLocal = false; const uint64_t alignment = op.getAlignment().value_or(0); |