[PATCH] D22794: [Sema] Propagate nullability when deducing type of auto

Manman Ren via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 15 17:27:35 PDT 2016


manmanren added a subscriber: manmanren.

================
Comment at: lib/Sema/SemaDecl.cpp:9739
@@ +9738,3 @@
+      DeducedType = DeducedType.setNullability(
+          Init->getType()->getNullability(Context), Context);
+
----------------
Do we propagate other attributes for deduced types?


https://reviews.llvm.org/D22794





More information about the cfe-commits mailing list