This is an archive of the discontinued LLVM Phabricator instance.

Cleanup some -Wundef warnings in include/llvm/Support/MathExtras.h
ClosedPublic

Authored by tkelman on Nov 11 2015, 4:36 PM.

Details

Summary

e.g.

include/llvm/Support/MathExtras.h:74:7: warning: "_MSC_VER" is not defined [-Wundef]
#elif _MSC_VER

^

Diff Detail

Event Timeline

tkelman updated this revision to Diff 39992.Nov 11 2015, 4:36 PM
tkelman retitled this revision from to Cleanup some -Wundef warnings in include/llvm/Support/MathExtras.h.
tkelman updated this object.
tkelman added a subscriber: llvm-commits.

Looks right to me.

Bigcheese accepted this revision.Nov 19 2015, 12:21 PM
Bigcheese added a reviewer: Bigcheese.
Bigcheese added a subscriber: Bigcheese.

lgtm

This revision is now accepted and ready to land.Nov 19 2015, 12:21 PM

Thanks! On a similar note, should the instances of __GNUC__ >= 4 probably be changed to LLVM_GNUC_PREREQ(4, 0, 0)? Can be dealt with in a separate patch since I don't build under MSVC with the equivalent warning levels.

looks like it should be.

tkelman closed this revision.Nov 20 2015, 3:06 PM

committed by Arch as r253614