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:
885ce84
)
Work around an ICE in gcc-4.2.4.
author
Jeffrey Yasskin
<jyasskin@google.com>
Thu, 9 Jul 2009 00:52:44 +0000
(
00:52
+0000)
committer
Jeffrey Yasskin
<jyasskin@google.com>
Thu, 9 Jul 2009 00:52:44 +0000
(
00:52
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75084
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/IRBuilder.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/IRBuilder.h
b/include/llvm/Support/IRBuilder.h
index 5069ead3914408cf5a8346507e74b5806a52b3ec..0fe0c3ce1f6b75d1ab221b579f4e285a89626d3e 100644
(file)
--- a/
include/llvm/Support/IRBuilder.h
+++ b/
include/llvm/Support/IRBuilder.h
@@
-402,7
+402,8
@@
public:
}
Value *CreateGlobalString(const char *Str = "", const char *Name = "") {
Constant *StrConstant = Context.getConstantArray(Str, true);
- GlobalVariable *gv = new GlobalVariable(*BB->getParent()->getParent(),
+ Module &M = *BB->getParent()->getParent();
+ GlobalVariable *gv = new GlobalVariable(M,
StrConstant->getType(),
true,
GlobalValue::InternalLinkage,