r243571 - [SemaAccess] Provide meaningful message when we hit llvm_unreachable().
Davide Italiano
davide at freebsd.org
Wed Jul 29 13:55:04 PDT 2015
Author: davide
Date: Wed Jul 29 15:55:04 2015
New Revision: 243571
URL: http://llvm.org/viewvc/llvm-project?rev=243571&view=rev
Log:
[SemaAccess] Provide meaningful message when we hit llvm_unreachable().
Modified:
cfe/trunk/lib/Sema/SemaAccess.cpp
Modified: cfe/trunk/lib/Sema/SemaAccess.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaAccess.cpp?rev=243571&r1=243570&r2=243571&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaAccess.cpp (original)
+++ cfe/trunk/lib/Sema/SemaAccess.cpp Wed Jul 29 15:55:04 2015
@@ -1766,7 +1766,7 @@ Sema::AccessResult Sema::CheckFriendAcce
case AR_inaccessible: return Sema::AR_inaccessible;
case AR_dependent: return Sema::AR_dependent;
}
- llvm_unreachable("falling off end");
+ llvm_unreachable("invalid access result");
}
Sema::AccessResult Sema::CheckAddressOfMemberAccess(Expr *OvlExpr,
More information about the cfe-commits
mailing list