summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-17 00:34:54 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-17 00:34:54 +0000
commitc3b847db4fb7d6cb41eac368848ae1d029b03075 (patch)
tree09c675190f441c7db5e06b453742ef3fef02ad4d /llvm
parent590872b0c2ef0efa4460d859160bbb05f67c020e (diff)
downloadbcm5719-llvm-c3b847db4fb7d6cb41eac368848ae1d029b03075.tar.gz
bcm5719-llvm-c3b847db4fb7d6cb41eac368848ae1d029b03075.zip
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. llvm-svn: 263681
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/YAMLTraits.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/YAMLTraits.h b/llvm/include/llvm/Support/YAMLTraits.h
index 25680be53d5..e9c0bd93caa 100644
--- a/llvm/include/llvm/Support/YAMLTraits.h
+++ b/llvm/include/llvm/Support/YAMLTraits.h
@@ -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);
OpenPOWER on IntegriCloud