summaryrefslogtreecommitdiff
path: root/include/llvm-c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-22 06:49:46 +0000
committerChris Lattner <sabre@nondot.org>2010-01-22 06:49:46 +0000
commite73a31f667ad2fe03e25c97ac45b58c30d7f07c3 (patch)
tree753069c9e03bd2e0a40d83bc5d8ecbad9a580d7e /include/llvm-c
parent6eeb7345f215217aca4a60098eb1f968c76f700c (diff)
downloadllvm-e73a31f667ad2fe03e25c97ac45b58c30d7f07c3.tar.gz
llvm-e73a31f667ad2fe03e25c97ac45b58c30d7f07c3.tar.bz2
llvm-e73a31f667ad2fe03e25c97ac45b58c30d7f07c3.tar.xz
Stop building RTTI information for *most* llvm libraries. Notable
missing ones are libsupport, libsystem and libvmcore. libvmcore is currently blocked on bugpoint, which uses EH. Once it stops using EH, we can switch it off. This #if 0's out 3 unit tests, because gtest requires RTTI information. Suggestions welcome on how to fix this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm-c')
-rw-r--r--include/llvm-c/Core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h
index 7824729f31..d57c250fcb 100644
--- a/include/llvm-c/Core.h
+++ b/include/llvm-c/Core.h
@@ -1007,7 +1007,7 @@ namespace llvm {
\
template<typename T> \
inline T *unwrap(ref P) { \
- T *Q = dynamic_cast<T*>(unwrap(P)); \
+ T *Q = (T*)unwrap(P); \
assert(Q && "Invalid cast!"); \
return Q; \
}