File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -2224,18 +2224,8 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) {
2224
2224
return Visit (const_cast <Expr*>(E));
2225
2225
2226
2226
case CK_NoOp: {
2227
- llvm::Value *V = CE->changesVolatileQualification ()
2228
- ? EmitLoadOfLValue (CE)
2229
- : Visit (const_cast <Expr *>(E));
2230
- if (V) {
2231
- // CK_NoOp can model a pointer qualification conversion, which can remove
2232
- // an array bound and change the IR type.
2233
- // FIXME: Once pointee types are removed from IR, remove this.
2234
- llvm::Type *T = ConvertType (DestTy);
2235
- if (T != V->getType ())
2236
- V = Builder.CreateBitCast (V, T);
2237
- }
2238
- return V;
2227
+ return CE->changesVolatileQualification () ? EmitLoadOfLValue (CE)
2228
+ : Visit (const_cast <Expr *>(E));
2239
2229
}
2240
2230
2241
2231
case CK_BaseToDerived: {
You can’t perform that action at this time.
0 commit comments