[PATCH] D23820: Do not warn about format strings that are indexed string literals.

Meike Baumgärtner via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 13 18:45:30 PDT 2016


meikeb marked an inline comment as done.

================
Comment at: lib/Sema/SemaChecking.cpp:3864-3867
@@ +3863,6 @@
+    ResOffset = Offset.sadd_ov(Addend, Ov);
+  else {
+    assert(AddendIsRight && BinOpKind == BO_Sub &&
+           "operator must be add or sub with addend on the right");
+    ResOffset = Offset.ssub_ov(Addend, Ov);
+  }
----------------
This is way better. Thank you.


https://reviews.llvm.org/D23820





More information about the cfe-commits mailing list