projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c482f4
)
Add assertion to humor the paranoid.
author
Dale Johannesen
<dalej@apple.com>
Fri, 29 Jan 2010 21:21:28 +0000
(21:21 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Fri, 29 Jan 2010 21:21:28 +0000
(21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94843
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86FastISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86FastISel.cpp
b/lib/Target/X86/X86FastISel.cpp
index 94dec7ce355dd09c7ee88058db0b477f36108acf..d466ce0d4fb0d07e9eba4c5940ee8ff60e1a62dd 100644
(file)
--- a/
lib/Target/X86/X86FastISel.cpp
+++ b/
lib/Target/X86/X86FastISel.cpp
@@
-1156,6
+1156,7
@@
bool X86FastISel::X86VisitIntrinsicCall(IntrinsicInst &I) {
case Intrinsic::dbg_declare: {
DbgDeclareInst *DI = cast<DbgDeclareInst>(&I);
X86AddressMode AM;
+ assert(DI->getAddress() && "Null address should be checked earlier!");
if (!X86SelectAddress(DI->getAddress(), AM))
return false;
const TargetInstrDesc &II = TII.get(TargetInstrInfo::DEBUG_VALUE);