[PATCH] D18564: Remove HasFnAttribute guards to getFnAttribute calls
Nirav Dave via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 30 08:45:59 PDT 2016
niravd marked an inline comment as done.
================
Comment at: lib/Transforms/Utils/LoopUtils.cpp:476
@@ -476,1 +475,3 @@
+ bool HasFunNoNaNAttr =
+ F.getFnAttribute("no-nans-fp-math").getValueAsString() == "true";
BasicBlock *Header = TheLoop->getHeader();
----------------
hans wrote:
> Looks like F isn't declared until further below?
Fixed. This is what I get for not doing a sanity compile check on a minor change.
http://reviews.llvm.org/D18564
More information about the llvm-commits
mailing list