http://llvm.org/bugs/show_bug.cgi?id=22820
Bug ID: 22820
Summary: Assertion `Val && "isa<> used on a null pointer"'
failed
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 13990
--> http://llvm.org/bugs/attachment.cgi?id=13990&action=edit
Launch script
Hello everyone,
I made a bit of work to track it down to a minimal example.
Here what I came with:
#include <cmath>
void init(const double a) {
double ua = (a < 0.0)? -a : a;
if (ua > 13.0)
ua = std::fmod(ua, 13.0);
}
int main(void) {
init(1.0);
return 0;
}
This produces:
clang: /home/breusta/tmp/llvm/include/llvm/Support/Casting.h:95: static bool
llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To = llvm::MDNode;
>From = llvm::Metadata]: Assertion `Val && "isa<> used on a null pointer"'
failed.
(...)
clang version 3.6.0 (trunk 223924)
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs