Skip to content

Commit e814e46

Browse files
committed
Fix merge conflict
1 parent 77a7d5f commit e814e46

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

clang/include/clang/CIR/Dialect/Builder/CIRBaseBuilder.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class CIRBaseBuilderTy : public mlir::OpBuilder {
7676
cir::ConstantOp getNullValue(mlir::Type ty, mlir::Location loc) {
7777
return getConstant(loc, getZeroInitAttr(ty));
7878
}
79-
79+
8080
mlir::TypedAttr getConstNullPtrAttr(mlir::Type t) {
8181
assert(mlir::isa<cir::PointerType>(t) && "expected cir.ptr");
8282
return getConstPtrAttr(t, 0);

clang/lib/CIR/CodeGen/CIRGenBuilder.h

-4
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,6 @@ class CIRGenBuilderTy : public cir::CIRBaseBuilderTy {
141141
}
142142
bool isInt(mlir::Type i) { return mlir::isa<cir::IntType>(i); }
143143

144-
bool isInt8Ty(mlir::Type i) {
145-
return i == typeCache.UInt8Ty || i == typeCache.SInt8Ty;
146-
}
147-
148144
// Creates constant nullptr for pointer type ty.
149145
cir::ConstantOp getNullPtr(mlir::Type ty, mlir::Location loc) {
150146
assert(!cir::MissingFeatures::targetCodeGenInfoGetNullPointer());

clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ void AggExprEmitter::emitArrayInit(Address destPtr, cir::ArrayType arrayTy,
153153
// Allocate the temporary variable
154154
// to store the pointer to first unitialized element
155155
auto tmpAddr = cgf.createTempAlloca(
156-
cirElementPtrType, cgf.getPointerAlign(), loc, "arrayinit.temp");
156+
cirElementPtrType, cgf.getPointerAlign(), loc, "arrayinit.temp", false);
157157
LValue tmpLV = LValue::makeAddr(tmpAddr, elementPtrType);
158158
cgf.emitStoreThroughLValue(RValue::get(element), tmpLV);
159159

0 commit comments

Comments
 (0)