From 6d4e44b462fe9e870a40358522379400ccc6e3c2 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 6 Aug 2010 01:17:25 +0000 Subject: [PATCH] Attempt to fix uninitialized value warning reported on cfe-commits. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110418 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGExprScalar.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 08d340ef7b..3939ec7d30 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1327,8 +1327,7 @@ Value *ScalarExprEmitter::VisitOffsetOfExpr(OffsetOfExpr *E) { } case OffsetOfExpr::OffsetOfNode::Identifier: - assert(0 && "Invalid offsetof"); - break; + llvm_unreachable("dependent __builtin_offsetof"); case OffsetOfExpr::OffsetOfNode::Base: { if (ON.getBase()->isVirtual()) { -- 2.40.0