search for: oldkey

Displaying 3 results from an estimated 3 matches for "oldkey".

2019 Sep 26
2
DenseMap/ValueMap: is M[New]=M[Old] valid ?
Hi, I have a question about llvm/ADT/DenseMap.h and llvm/IR/ValueMap.h: When you have a: MapType M; is it safe to do: M[NewKey] = M[OldKey]; or do you need to do it in two steps: auto tmp = M[OldKey]; // ensure the reference to M[OldKey] is copied, before reassigning. M[NewKey] = tmp; // might reallocate aka, will a possible allocation for M[NewKey] invalidate the reference that M[OldKey] returns ? Greetings, Jeroen Do...
2019 Sep 27
2
DenseMap/ValueMap: is M[New]=M[Old] valid ?
...elaere via llvm-dev > <llvm-dev at lists.llvm.org> wrote: > Hi, > > I have a question about llvm/ADT/DenseMap.h and > llvm/IR/ValueMap.h: > > When you have a: >      MapType M; > > is it safe to do: >     M[NewKey] = M[OldKey]; > > or do you need to do it in two steps: >    auto tmp = M[OldKey]; // ensure the reference to M[OldKey] is > copied, before reassigning. >    M[NewKey] = tmp;      // might reallocate > > aka, will a possible allocation for M[NewKey] invalidate...
2008 Jun 15
11
[PATCH] helper to create fb css stylized table
...on with fb_table. See the example there. + # Provide any options. + def fb_tf_spacer(options={}) + fb_td_spacer(options) + end # Create an fb:dialog # id must be a unique name e.g. "my_dialog" @@ -581,4 +772,4 @@ self[newkey] = self.delete(oldkey) if self.has_key?(oldkey) self end -end \ No newline at end of file +end