From f46232d70daa5fe57df43697d3ca2dcb74a79c7b Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 29 Mar 2015 01:07:57 +0000 Subject: [PATCH] Fix a variable name in MSVC specific part of rr233487. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233488 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Host.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 2ff5689933c..a50e8437bdf 100644 --- a/lib/Support/Host.cpp +++ b/lib/Support/Host.cpp @@ -191,8 +191,8 @@ static bool GetX86XCR0(unsigned *rEAX, unsigned *rEDX) { return false; #elif defined(_MSC_FULL_VER) && defined(_XCR_XFEATURE_ENABLED_MASK) unsigned long long Result = _xgetbv(_XCR_XFEATURE_ENABLED_MASK); - *rEAX = Value; - *rEDX = Value >> 32; + *rEAX = Result; + *rEDX = Result >> 32; return false; #else return true;