]> granicus.if.org Git - clang/commitdiff
[CodeComplete] Temporarily disable failing assertion
authorIlya Biryukov <ibiryukov@google.com>
Thu, 13 Dec 2018 17:23:48 +0000 (17:23 +0000)
committerIlya Biryukov <ibiryukov@google.com>
Thu, 13 Dec 2018 17:23:48 +0000 (17:23 +0000)
Found the case in the clang codebase where the assertion fires.
To avoid crashing assertion-enabled builds before I re-add the missing
operation.
Will restore the assertion alongside the upcoming fix.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349061 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCodeComplete.cpp

index 645830b4886a027f2bb49164d00639ce1e2fa240..773dd46ac467d00817ab7c958fe71368263fb1f9 100644 (file)
@@ -4949,7 +4949,8 @@ static QualType getPreferredTypeOfBinaryRHS(Sema &S, Expr *LHS,
   case tok::arrowstar:
     return QualType();
   default:
-    assert(false && "unhandled binary op");
+    // FIXME(ibiryukov): handle the missing op, re-add the assertion.
+    // assert(false && "unhandled binary op");
     return QualType();
   }
 }