Fix another ternary Visual C++ is OK wiht but gcc not.

llvm-svn: 232624
This commit is contained in:
Yaron Keren 2015-03-18 10:30:57 +00:00
parent 49c63695c0
commit 1a9f58b32d
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ void DereferenceChecker::reportBug(ProgramStateRef State, const Stmt *S,
os.flush();
BugReport *report =
new BugReport(*BT_null,
buf.empty() ? BT_null->getDescription() : buf,
buf.empty() ? BT_null->getDescription() : StringRef(buf),
N);
bugreporter::trackNullOrUndefValue(N, bugreporter::getDerefExpr(S), *report);