[PATCH] D125318: [analyzer] Add UnarySymExpr
Balázs Benics via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 11 05:39:35 PDT 2022
steakhal added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp:107
+ return makeNonLoc(X.castAs<nonloc::SymbolVal>().getSymbol(), UO_Not,
+ X.getType(Context));
default:
----------------
I'm not sure if we should rely on `SVal::getType()`. I think the calling context should pass the type along here.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125318/new/
https://reviews.llvm.org/D125318
More information about the cfe-commits
mailing list