================
@@ -53,6 +53,16 @@ struct Lattice {
   }
 };
 
+static SourceLocation GetFactLoc(const Fact &F) {
+  if (const auto *UF = F.getAs<UseFact>()) {
+    return UF->getUseExpr()->getExprLoc();
+  }
+  if (const auto *OEF = F.getAs<OriginEscapesFact>()) {
+    return OEF->getEscapeExpr()->getExprLoc();
+  }
+  return SourceLocation(); // Invalid SourceLocation
----------------
usx95 wrote:

This should be replaced by `llvm_unreachable`.

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

Reply via email to