[clang] [CIR] Upstream ComplexType builtin_complex (PR #144225)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 16 09:38:23 PDT 2025
================
@@ -32,6 +46,16 @@ static const ComplexType *getComplexType(QualType type) {
return cast<ComplexType>(cast<AtomicType>(type)->getValueType());
}
+mlir::Value ComplexExprEmitter::emitLoadOfLValue(LValue lv,
+ SourceLocation loc) {
+ assert(lv.isSimple() && "non-simple complex l-value?");
+ if (lv.getType()->isAtomicType())
+ cgf.cgm.errorNYI("emitLoadOfLValue with Atomic LV");
----------------
andykaylor wrote:
```suggestion
cgf.cgm.errorNYI(loc, "emitLoadOfLValue with Atomic LV");
```
This is very useful in the diagnostic produced.
https://github.com/llvm/llvm-project/pull/144225
More information about the cfe-commits
mailing list