Skip to content

Commit

Permalink
Attempting to fix the build on older GCC versions.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178604 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
AaronBallman committed Apr 3, 2013
1 parent a964ad5 commit 95a16c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Support/Host.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ static bool GetX86CpuIDAndInfo(unsigned value, unsigned *rEAX,
}

static bool OSHasAVXSupport() {
#if defined(__GNUC__)
#if defined( __GNUC__ ) && \
(__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4)
int rEAX, rEDX;
__asm__ ("xgetbv" : "=a" (rEAX), "=d" (rEDX) : "c" (0));
#elif defined(_MSC_VER)
Expand Down

0 comments on commit 95a16c4

Please sign in to comment.