Code already assumes this is float. getFPAccuracy() crashes on any other type.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Add a LangRef comment?
lib/IR/Verifier.cpp | ||
---|---|---|
3672 | Maybe something more explicit like "must have float type"? |
Comment Actions
Thanks, LGTM
lib/IR/Verifier.cpp | ||
---|---|---|
3671 | Looking at this again: perhaps cleaner to do CFP0->getType()->isFloatTy() ? |
lib/IR/Verifier.cpp | ||
---|---|---|
3671 | Since the other condition needs the APFloat anyway maybe it's more consistent to use it to check all the conditions? |
lib/IR/Verifier.cpp | ||
---|---|---|
3671 | Eh, fair enough; lgtm |
Looking at this again: perhaps cleaner to do CFP0->getType()->isFloatTy() ?