[clang] [analyzer] Model concrete floating-point values (PR #214098)

Balázs Benics via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 21 10:01:30 PDT 2026


================
@@ -220,8 +227,8 @@ DefinedSVal SValBuilder::getConjuredHeapSymbolVal(ConstCFGElementRef elem,
   assert(Loc::isLocType(type));
   assert(SymbolManager::canSymbolicate(type));
   if (type->isNullPtrType()) {
-    // makeZeroVal() returns UnknownVal only in case of FP number, which
-    // is not the case.
+    // The assert above establishes this is a Loc type, for which makeZeroVal()
+    // always returns a defined value.
----------------
steakhal wrote:

I think we could probably just drop this comment. It doesn't add much.

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


More information about the cfe-commits mailing list