Skip to content

Commit c4c22a5

Browse files
junlarsennikic
andauthored
[Clang][TableGen] Use PointerType::get(Context) in MVE TableGen emitter (NFC) (#124782)
Follow-up to #123569 Co-authored-by: Nikita Popov <[email protected]>
1 parent 3f8e280 commit c4c22a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/utils/TableGen/MveEmitter.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,7 @@ class PointerType : public Type {
209209
Name = "const " + Name;
210210
return Name + " *";
211211
}
212-
std::string llvmName() const override {
213-
return "llvm::PointerType::getUnqual(" + Pointee->llvmName() + ")";
214-
}
212+
std::string llvmName() const override { return "Builder.getPtrTy()"; }
215213
const Type *getPointeeType() const { return Pointee; }
216214

217215
static bool classof(const Type *T) {

0 commit comments

Comments
 (0)