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) {
|
||||
CGM.ErrorUnsupported(S, "constant expression");
|
||||
QualType T = cast<Expr>(S)->getType();
|
||||
return llvm::UndefValue::get(CGM.getTypes().ConvertType(T));
|
||||
return 0;
|
||||
}
|
||||
|
||||
llvm::Constant *VisitParenExpr(ParenExpr *PE) {
|
||||
|
|
Loading…
Reference in New Issue