[clang] [NFC] Move warning from CodeGen to Sema. (PR #107397)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 12:04:43 PDT 2024


================
@@ -7964,6 +7964,12 @@ class Sema final : public SemaBase {
   /// Do an explicit extend of the given block pointer if we're in ARC.
   void maybeExtendBlockObject(ExprResult &E);
 
+  std::vector<std::tuple<SourceLocation, QualType, unsigned>>
----------------
AaronBallman wrote:

I don't think we need the `SourceLocation` and this can be a `std::pair` instead. We're using the `LocationOfExcessPrecisionNotSatisfied` member instead because we only want to emit one diagnostic.

https://github.com/llvm/llvm-project/pull/107397


More information about the cfe-commits mailing list