Skip to content

Commit

Permalink
Add missing ::llvm::
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Symalla committed Jul 17, 2024
1 parent 6bf2b09 commit d8b4a34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/TableGen/Operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void AccessorBuilder::emitVarArgReplacementDefinition() const {
if ($index > 0)
newArgs.append(arg_begin(), arg_begin() + $index);
newArgs.append($name.begin(), $name.end());
$_op *newOp = cast<$_op>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
$_op *newOp = ::llvm::cast<$_op>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
this->replaceAllUsesWith(newOp);
this->eraseFromParent();
return newOp;
Expand Down
4 changes: 2 additions & 2 deletions test/example/generated/ExampleDialect.cpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ instName
if (0 > 0)
newArgs.append(arg_begin(), arg_begin() + 0);
newArgs.append(instName_0.begin(), instName_0.end());
InstNameConflictVarargsOp *newOp = cast<InstNameConflictVarargsOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
InstNameConflictVarargsOp *newOp = ::llvm::cast<InstNameConflictVarargsOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
this->replaceAllUsesWith(newOp);
this->eraseFromParent();
return newOp;
Expand Down Expand Up @@ -2249,7 +2249,7 @@ data
if (1 > 0)
newArgs.append(arg_begin(), arg_begin() + 1);
newArgs.append(args.begin(), args.end());
WriteVarArgOp *newOp = cast<WriteVarArgOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
WriteVarArgOp *newOp = ::llvm::cast<WriteVarArgOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
this->replaceAllUsesWith(newOp);
this->eraseFromParent();
return newOp;
Expand Down

0 comments on commit d8b4a34

Please sign in to comment.