Devin Coughlin
Devin Coughlin
rdar://problem/24026448
Reproduced on ToT. Assertion failed: (A->isGLValue() || (!AMgr.getLangOpts().CPlusPlus && A->getType().isCForbiddenLValueType())), function VisitLvalArraySubscriptExpr, file /Volumes/Data/Clangs/OpenSourceGit/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp, line 1959. 0 clang 0x000000010cf1e7db llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 43 1 clang 0x000000010cf1da56 llvm::sys::RunSignalHandlers() + 70 2 clang...
If I'm reading the stack trace correctly, it looks like this is crashing in a checker called "FMFunctionCheck" -- is this a custom checker? It is not part of top-of-trunk...
Andrew: It is the alpha.core.CallAndMessageUnInitRefArg checker producing this warning. I think it is working as designed. It is warning because you are passing a pointer to uninitialized memory to a...
*** Bug llvm/llvm-project#25628 has been marked as a duplicate of this bug. ***
Piotr: I fixed the false positive in your example in r255859. Andrew: I'm having a hard time reproducing your false positive (either with or without the latest fix in r255859)....
> Piotr, I don't see an attached file. Do you still have the preprocessed file? Never mind! Reproduced without it.
Piotr, I don't see an attached file. Do you still have the preprocessed file?
Moving to the static analyzer component.
Thanks for the report! This is the same underlying issue as llvm/llvm-project#25766 and has been fixed on top-of-trunk. The fix will be available in the next checker release. *** This...