[llvm-commits] [llvm-gcc] Updated Patch for ConstantBool->ConstantInt Merge
Chris Lattner
clattner at apple.com
Thu Jan 11 22:52:45 PST 2007
I applied this:
Index: llvm-backend.cpp
===================================================================
--- llvm-backend.cpp (revision 122351)
+++ llvm-backend.cpp (working copy)
@@ -569,7 +569,7 @@
// If this has already been processed, don't emit duplicate error
messages.
if (DECL_LLVM_SET_P(decl)) {
// Error state encoded into DECL_LLVM.
- return cast<ConstantInt>(DECL_LLVM(decl))->getBoolValue();
+ return cast<ConstantInt>(DECL_LLVM(decl))->getZExtValue();
}
/* Detect errors in declaring global registers. */
-Chris
On Jan 11, 2007, at 8:29 PM, Reid Spencer wrote:
> Here's an updated patch to mirror revision r247 that you'll need in
> order to compile llvm-gcc with the latest LLVM HEAD revision. Due to
> review changes, the interface to ConstantInt changed and consequently
> llvm-gcc was affect. This patch includes the last one that I sent.
>
> Jim/Chris: Just the first hunk of the first file (llvm-backend)
> needs to
> be committed. You've already committed the rest of it. This is a 1-
> line
> change.
>
> Reid.
> <BoolMerge.patch>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list