This is an archive of the discontinued LLVM Phabricator instance.

Fix for Crash in nested name specifier decltype
AbandonedPublic

Authored by bviyer on Jun 22 2018, 2:46 PM.

Details

Reviewers
rsmith
arphaman
Summary

There was a crash when qualtype is null in the function Sema::ActOnCXXNestedNameSpecifierDecltype. If it is null then just return without processing it further.

Diff Detail

Repository
rC Clang

Event Timeline

bviyer created this revision.Jun 22 2018, 2:46 PM

Hi Balaji, thanks for working on this!

lib/Sema/SemaCXXScopeSpec.cpp
849–850

T.isNull()? Also, we use 2 space indentation in LLVM.

test/SemaCXX/qualtype-null-check.cpp
1

I can't reproduce this failure with TOT clang, are you sure you copied in the testcase right?

Looks like @rtrieu beat you to the punch in r336475! Presumably thats why the test case wasn't failing on TOT. Since this is already fixed, you should mark this revision as abandoned.

bviyer abandoned this revision.Jul 9 2018, 4:12 PM

Thank you Eric. I abandoned the revision as you suggested.