From 1cbd039234ccc39f8a4fee662cc55da9314ea4ba Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Mon, 11 Jul 2016 23:18:32 +0000 Subject: [PATCH] Attempt to make buildbots happy. Woohoo, unused variable warnings in builds without asserts (as a result of r275122). llvm-svn: 275126 --- llvm/lib/Analysis/CFLGraph.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Analysis/CFLGraph.h b/llvm/lib/Analysis/CFLGraph.h index 24d6710ffcb8..57bea5ffd82a 100644 --- a/llvm/lib/Analysis/CFLGraph.h +++ b/llvm/lib/Analysis/CFLGraph.h @@ -108,11 +108,10 @@ public: } void addEdge(Node From, Node To, int64_t Offset = 0) { + assert(getNode(To) != nullptr); + auto *FromInfo = getNode(From); assert(FromInfo != nullptr); - auto *ToInfo = getNode(To); - assert(ToInfo != nullptr); - FromInfo->Edges.push_back(Edge{To}); }