OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1f523d
)
Assert invariants
author
Chris Lattner
<sabre@nondot.org>
Thu, 9 Feb 2006 02:25:42 +0000
(
02:25
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 9 Feb 2006 02:25:42 +0000
(
02:25
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26073
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineConstantPool.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineConstantPool.h
b/include/llvm/CodeGen/MachineConstantPool.h
index
0d12984
..
2ac6e14
100644
(file)
--- a/
include/llvm/CodeGen/MachineConstantPool.h
+++ b/
include/llvm/CodeGen/MachineConstantPool.h
@@
-24,6
+24,7
@@
#include <vector>
#include <iosfwd>
+#include <cassert>
namespace llvm {
@@
-37,6
+38,8
@@
public:
/// an existing one. User must specify an alignment in bytes for the object.
///
unsigned getConstantPoolIndex(Constant *C, unsigned Alignment) {
+ assert(Alignment && "Alignment must be specified!");
+
// Check to see if we already have this constant.
//
// FIXME, this could be made much more efficient for large constant pools.