]> granicus.if.org Git - clang/commitdiff
Attempt to fix uninitialized value warning reported on cfe-commits.
authorEli Friedman <eli.friedman@gmail.com>
Fri, 6 Aug 2010 01:17:25 +0000 (01:17 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 6 Aug 2010 01:17:25 +0000 (01:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110418 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGExprScalar.cpp

index 08d340ef7b50300fe3d1922c20586fe783fbebdf..3939ec7d3065c06d1d522d998f80bd07a173ea1c 100644 (file)
@@ -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()) {