Skip to content

Commit d24125e

Browse files
committed
Rebase fallout
1 parent 231ff37 commit d24125e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/librustc_codegen_llvm/builder.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,14 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
999999
}
10001000
}
10011001

1002+
#[allow(dead_code)]
1003+
fn va_arg(&mut self, list: &'ll Value, ty: &'ll Type) -> &'ll Value {
1004+
self.count_insn("vaarg");
1005+
unsafe {
1006+
llvm::LLVMBuildVAArg(self.llbuilder, list, ty, noname())
1007+
}
1008+
}
1009+
10021010
fn extract_element(&mut self, vec: &'ll Value, idx: &'ll Value) -> &'ll Value {
10031011
self.count_insn("extractelement");
10041012
unsafe {
@@ -1263,7 +1271,7 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
12631271
}
12641272

12651273
impl StaticBuilderMethods<'tcx> for Builder<'a, 'll, 'tcx> {
1266-
fn get_static(&mut self, def_id: DefId) -> &'ll Value {
1274+
fn get_static(&mut self, def_id: DefId) -> &'ll Value {
12671275
// Forward to the `get_static` method of `CodegenCx`
12681276
self.cx().get_static(def_id)
12691277
}

src/librustc_codegen_ssa/traits/builder.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ pub trait BuilderMethods<'a, 'tcx: 'a>:
209209
else_val: Self::Value,
210210
) -> Self::Value;
211211

212+
fn va_arg(&mut self, list: Self::Value, ty: Self::Type) -> Self::Value;
212213
fn extract_element(&mut self, vec: Self::Value, idx: Self::Value) -> Self::Value;
213214
fn vector_splat(&mut self, num_elts: usize, elt: Self::Value) -> Self::Value;
214215
fn extract_value(&mut self, agg_val: Self::Value, idx: u64) -> Self::Value;

0 commit comments

Comments
 (0)