[llvm] r263681 - Require allocator parameter to YAML traits.
Pete Cooper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 16 17:34:54 PDT 2016
Author: pete
Date: Wed Mar 16 19:34:54 2016
New Revision: 263681
URL: http://llvm.org/viewvc/llvm-project?rev=263681&view=rev
Log:
Require allocator parameter to YAML traits.
The allocator here can still be a nullptr, but this atleast makes the
single caller which needed nullptr be explicit about it.
Note, lld started always passing a parameter here as of r263680. If
anything builds out of sync, that would be why errors may occur.
Modified:
llvm/trunk/include/llvm/Support/YAMLTraits.h
Modified: llvm/trunk/include/llvm/Support/YAMLTraits.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/YAMLTraits.h?rev=263681&r1=263680&r2=263681&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/YAMLTraits.h (original)
+++ llvm/trunk/include/llvm/Support/YAMLTraits.h Wed Mar 16 19:34:54 2016
@@ -895,7 +895,7 @@ private:
template <typename TNorm, typename TFinal>
struct MappingNormalizationHeap {
MappingNormalizationHeap(IO &i_o, TFinal &Obj,
- llvm::BumpPtrAllocator *allocator = nullptr)
+ llvm::BumpPtrAllocator *allocator)
: io(i_o), BufPtr(nullptr), Result(Obj) {
if ( io.outputting() ) {
BufPtr = new (&Buffer) TNorm(io, Obj);
More information about the llvm-commits
mailing list