Skip to content

Commit 9b0ef16

Browse files
bcardosolopeslanza
authored andcommitted
[CIR][CodeGen][NFC] Fix CallOp related comments
1 parent 47d9b4c commit 9b0ef16

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

clang/lib/CIR/CodeGen/CIRGenCall.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,8 @@ RValue CIRGenFunction::buildCall(const CIRGenFunctionInfo &CallInfo,
396396

397397
// Emit the actual call op.
398398
auto callLoc = CGM.getLoc(Loc);
399-
400-
// FIXME: Used to be:
401-
// auto theCall = CGM.getBuilder().create<mlir::cir::CallOp>(
402-
// callLoc, mlir::SymbolRefAttr::get(CalleePtr),
403-
// CalleePtr.getType().getResults(), CIRCallArgs);
404399
auto theCall = CGM.getBuilder().create<mlir::cir::CallOp>(callLoc, CalleePtr,
405-
CIRCallArgs);
400+
CIRCallArgs);
406401

407402
if (callOrInvoke)
408403
callOrInvoke = &theCall;

clang/lib/CIR/CodeGen/CIRGenFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ class CIRGenFunction {
544544
AbstractCallee AC = AbstractCallee(), unsigned ParamsToSkip = 0,
545545
EvaluationOrder Order = EvaluationOrder::Default);
546546

547-
/// buildCall - Generate a call of the given function, expecting the given
547+
/// Generate a call of the given function, expecting the given
548548
/// result type, and using the given argument list which specifies both the
549549
/// LLVM arguments and the types they were derived from.
550550
RValue buildCall(const CIRGenFunctionInfo &CallInfo,

0 commit comments

Comments
 (0)