[cfe-commits] r42010 - in /cfe/trunk: AST/ASTContext.cpp CodeGen/CGExpr.cpp CodeGen/CodeGenTypes.cpp
Chris Lattner
sabre at nondot.org
Sun Sep 16 12:23:47 PDT 2007
Author: lattner
Date: Sun Sep 16 14:23:47 2007
New Revision: 42010
URL: http://llvm.org/viewvc/llvm-project?rev=42010&view=rev
Log:
fix some warnings, patch by Justin Handville
Modified:
cfe/trunk/AST/ASTContext.cpp
cfe/trunk/CodeGen/CGExpr.cpp
cfe/trunk/CodeGen/CodeGenTypes.cpp
Modified: cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ASTContext.cpp?rev=42010&r1=42009&r2=42010&view=diff
==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Sun Sep 16 14:23:47 2007
@@ -730,6 +730,9 @@
}
}
assert(0 && "getFloatingTypeOfSizeWithinDomain(): illegal domain");
+ //an invalid return value, but the assert
+ //will ensure that this code is never reached.
+ return VoidTy;
}
/// compareFloatingType - Handles 3 different combos:
Modified: cfe/trunk/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=42010&r1=42009&r2=42010&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGExpr.cpp Sun Sep 16 14:23:47 2007
@@ -134,6 +134,9 @@
return EmitLoadOfOCUElementLValue(LV, ExprType);
assert(0 && "Bitfield ref not impl!");
+ //an invalid RValue, but the assert will
+ //ensure that this point is never reached
+ return RValue();
}
// If this is a reference to a subset of the elements of a vector, either
@@ -270,6 +273,9 @@
return LValue::MakeAddr(CGM.GetAddrOfGlobalDecl(D));
}
assert(0 && "Unimp declref");
+ //an invalid LValue, but the assert will
+ //ensure that this point is never reached.
+ return LValue();
}
LValue CodeGenFunction::EmitUnaryOpLValue(const UnaryOperator *E) {
Modified: cfe/trunk/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CodeGenTypes.cpp?rev=42010&r1=42009&r2=42010&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/trunk/CodeGen/CodeGenTypes.cpp Sun Sep 16 14:23:47 2007
@@ -136,6 +136,11 @@
return llvm::FunctionType::get(ResultType, ArgTys, isVarArg, 0);
}
+
+ case Type::ObjcInterface:
+ assert(0 && "FIXME: add missing functionality here");
+ break;
+
case Type::Tagged:
const TagType &TT = cast<TagType>(Ty);
const TagDecl *TD = TT.getDecl();
More information about the cfe-commits
mailing list