forked from OSchip/llvm-project
Return 0 if the ConstExprEmitter can't handle an expression.
llvm-svn: 65951
This commit is contained in:
parent
b0e25c1ceb
commit
24b1447b19
|
@ -40,9 +40,7 @@ public:
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
|
|
||||||
llvm::Constant *VisitStmt(Stmt *S) {
|
llvm::Constant *VisitStmt(Stmt *S) {
|
||||||
CGM.ErrorUnsupported(S, "constant expression");
|
return 0;
|
||||||
QualType T = cast<Expr>(S)->getType();
|
|
||||||
return llvm::UndefValue::get(CGM.getTypes().ConvertType(T));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
llvm::Constant *VisitParenExpr(ParenExpr *PE) {
|
llvm::Constant *VisitParenExpr(ParenExpr *PE) {
|
||||||
|
|
Loading…
Reference in New Issue