We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents aaeb760 + ee114b6 commit 353578aCopy full SHA for 353578a
src/librustc/middle/trans/intrinsic.rs
@@ -65,7 +65,7 @@ pub fn trans_intrinsic(ccx: @mut CrateContext,
65
let val = Call(bcx, llfn, [a, b], []);
66
let result = ExtractValue(bcx, val, 0);
67
let overflow = ZExt(bcx, ExtractValue(bcx, val, 1), Type::bool());
68
- let ret = Load(bcx, Alloca(bcx, type_of::type_of(bcx.ccx(), t), ""));
+ let ret = C_undef(type_of::type_of(bcx.ccx(), t));
69
let ret = InsertValue(bcx, ret, result, 0);
70
let ret = InsertValue(bcx, ret, overflow, 1);
71
0 commit comments