Skip to content

Commit 859eec8

Browse files
author
Tommy McMichen
committed
[CIR] Fixed another bug
1 parent 42b7db8 commit 859eec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/Dialect/Transforms/LifetimeCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1793,7 +1793,7 @@ void LifetimeCheckPass::checkCall(CallOp callOp) {
17931793
// From this point on only owner and pointer class methods handling,
17941794
// starting from special methods.
17951795
if (auto fnName = callOp.getCallee()) {
1796-
auto calleeFuncOp = getCalleeFromSymbol(theModule, fnName);
1796+
auto calleeFuncOp = getCalleeFromSymbol(theModule, *fnName);
17971797
if (calleeFuncOp && calleeFuncOp.getCxxSpecialMember()) {
17981798
auto cxxSpecialMember = *calleeFuncOp.getCxxSpecialMember();
17991799
if (auto cxxCtor = dyn_cast<cir::CXXCtorAttr>(cxxSpecialMember))

0 commit comments

Comments
 (0)