lebedev.ri added inline comments.
================ Comment at: lib/Sema/SemaChecking.cpp:8619 + if (OtherRange.Width == 0) + return Value == 0 ? LimitType::Both : llvm::Optional<LimitType>(); + ---------------- aaron.ballman wrote: > Instead of default constructing the Optional, you should use `llvm::None` > instead. Thank you for the suggestion, i did not really know about `llvm::None`. However only the last `return` can be enhanced: ``` clang/lib/Sema/SemaChecking.cpp:8619:23: error: incompatible operand types ('(anonymous namespace)::LimitType' and 'llvm::NoneType') return Value == 0 ? LimitType::Both : llvm::None; ^ ~~~~~~~~~~~~~~~ ~~~~~~~~~~ ``` Repository: rL LLVM https://reviews.llvm.org/D39122 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits