================
@@ -304,12 +304,21 @@ CIRGenFunction::emitOpenACCCacheConstruct(const 
OpenACCCacheConstruct &s) {
   return mlir::success();
 }
 
+const VarDecl *getLValueDecl(const Expr *E) {
+  // We are going to assume that after stripping implicit casts, that the 
LValue
+  // is just a DRE around the var-decl.
+
+  E = E->IgnoreImpCasts();
+
+  const auto *DRE = cast<DeclRefExpr>(E);
----------------
erichkeane wrote:

As you can tell, it gets me all the time :D 

https://github.com/llvm/llvm-project/pull/164836
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to