diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-21 06:11:03 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-21 06:11:03 +0000 |
| commit | f2f73bf214a0b4ce7b3dc62de98144b6b00e2e05 (patch) | |
| tree | 86a5cceca8838ea8df8c6115cdba1ac065238844 | |
| parent | 0c2ec779cf680d22831de618b32c6aad626c0b89 (diff) | |
| download | bcm5719-llvm-f2f73bf214a0b4ce7b3dc62de98144b6b00e2e05.tar.gz bcm5719-llvm-f2f73bf214a0b4ce7b3dc62de98144b6b00e2e05.zip | |
remove a couple of asserts that use RTTI.
llvm-svn: 94068
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineFunction.h | 3 | ||||
| -rw-r--r-- | llvm/include/llvm/CodeGen/MachineModuleInfo.h | 3 | ||||
| -rw-r--r-- | llvm/include/llvm/Target/TargetMachine.h | 5 |
3 files changed, 1 insertions, 10 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h index 32d2857f874..6ca51bfdf3d 100644 --- a/llvm/include/llvm/CodeGen/MachineFunction.h +++ b/llvm/include/llvm/CodeGen/MachineFunction.h @@ -175,9 +175,6 @@ public: AlignOf<Ty>::Alignment)); MFInfo = new (Loc) Ty(*this); } - - assert((void*)dynamic_cast<Ty*>(MFInfo) == (void*)MFInfo && - "Invalid concrete type or multiple inheritence for getInfo"); return static_cast<Ty*>(MFInfo); } diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfo.h b/llvm/include/llvm/CodeGen/MachineModuleInfo.h index 192f37df2c0..1964625f3e6 100644 --- a/llvm/include/llvm/CodeGen/MachineModuleInfo.h +++ b/llvm/include/llvm/CodeGen/MachineModuleInfo.h @@ -176,9 +176,6 @@ public: Ty &getObjFileInfo() { if (ObjFileMMI == 0) ObjFileMMI = new Ty(*this); - - assert((void*)dynamic_cast<Ty*>(ObjFileMMI) == (void*)ObjFileMMI && - "Invalid concrete type or multiple inheritence for getInfo"); return *static_cast<Ty*>(ObjFileMMI); } diff --git a/llvm/include/llvm/Target/TargetMachine.h b/llvm/include/llvm/Target/TargetMachine.h index b0ed6b3aa79..4db3d3ed303 100644 --- a/llvm/include/llvm/Target/TargetMachine.h +++ b/llvm/include/llvm/Target/TargetMachine.h @@ -137,10 +137,7 @@ public: /// TargetSubtarget. In debug builds, it verifies that the object being /// returned is of the correct type. template<typename STC> const STC &getSubtarget() const { - const TargetSubtarget *TST = getSubtargetImpl(); - assert(TST && dynamic_cast<const STC*>(TST) && - "Not the right kind of subtarget!"); - return *static_cast<const STC*>(TST); + return *static_cast<const STC*>(getSubtargetImpl()); } /// getRegisterInfo - If register information is available, return it. If |

