mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Fix warnings about mb/me being potentially used
uninitialized in these functions with gcc-4.3. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57635 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ddbe5cbb10
commit
e79f5ef4e7
@ -180,14 +180,14 @@ def HA16 : SDNodeXForm<imm, [{
|
||||
}]>;
|
||||
def MB : SDNodeXForm<imm, [{
|
||||
// Transformation function: get the start bit of a mask
|
||||
unsigned mb, me;
|
||||
unsigned mb = 0, me;
|
||||
(void)isRunOfOnes((unsigned)N->getZExtValue(), mb, me);
|
||||
return getI32Imm(mb);
|
||||
}]>;
|
||||
|
||||
def ME : SDNodeXForm<imm, [{
|
||||
// Transformation function: get the end bit of a mask
|
||||
unsigned mb, me;
|
||||
unsigned mb, me = 0;
|
||||
(void)isRunOfOnes((unsigned)N->getZExtValue(), mb, me);
|
||||
return getI32Imm(me);
|
||||
}]>;
|
||||
|
Loading…
x
Reference in New Issue
Block a user