From c4558fde76bdb17bff28375fe20ee02e027095b8 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Mon, 12 Mar 2007 17:56:27 +0000 Subject: [PATCH] Unbreak VC++ build. Do not use identifiers starting with _ as they are reserved and can collide with system defined names. Windows defines _BB, for example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35066 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/LowerSwitch.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index 17ebd098803..9e859740704 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -46,9 +46,9 @@ namespace { Constant* High; BasicBlock* BB; - CaseRange(Constant* _Low = NULL, Constant* _High = NULL, - BasicBlock* _BB = NULL): - Low(_Low), High(_High), BB(_BB) { } + CaseRange() : Low(0), High(0), BB(0) { } + CaseRange(Constant* low, Constant* high, BasicBlock* bb) : + Low(low), High(high), BB(bb) { } }; typedef std::vector CaseVector; -- 2.34.1