[cfe-commits] r110418 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Eli Friedman
eli.friedman at gmail.com
Thu Aug 5 18:17:25 PDT 2010
Author: efriedma
Date: Thu Aug 5 20:17:25 2010
New Revision: 110418
URL: http://llvm.org/viewvc/llvm-project?rev=110418&view=rev
Log:
Attempt to fix uninitialized value warning reported on cfe-commits.
Modified:
cfe/trunk/lib/CodeGen/CGExprScalar.cpp
Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=110418&r1=110417&r2=110418&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Thu Aug 5 20:17:25 2010
@@ -1327,8 +1327,7 @@
}
case OffsetOfExpr::OffsetOfNode::Identifier:
- assert(0 && "Invalid offsetof");
- break;
+ llvm_unreachable("dependent __builtin_offsetof");
case OffsetOfExpr::OffsetOfNode::Base: {
if (ON.getBase()->isVirtual()) {
More information about the cfe-commits
mailing list