llvmbot wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Mats Jun Larsen (junlarsen)

<details>
<summary>Changes</summary>

Follow-up to #<!-- -->123569

I don't know if directly using the CodeGenModule here is the best solution. Let 
me know if there's something better to use.

---
Full diff: https://github.com/llvm/llvm-project/pull/124782.diff


1 Files Affected:

- (modified) clang/utils/TableGen/MveEmitter.cpp (+1-1) 


``````````diff
diff --git a/clang/utils/TableGen/MveEmitter.cpp 
b/clang/utils/TableGen/MveEmitter.cpp
index 58a4d3c22ac366..334aedbb8592b5 100644
--- a/clang/utils/TableGen/MveEmitter.cpp
+++ b/clang/utils/TableGen/MveEmitter.cpp
@@ -210,7 +210,7 @@ class PointerType : public Type {
     return Name + " *";
   }
   std::string llvmName() const override {
-    return "llvm::PointerType::getUnqual(" + Pointee->llvmName() + ")";
+    return "llvm::PointerType::getUnqual(CGM.getLLVMContext())";
   }
   const Type *getPointeeType() const { return Pointee; }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/124782
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to